-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[database]: Update the DPU database service configuration #17562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ze Gan <[email protected]>
@@ -102,23 +111,23 @@ | |||
"DPU_APPL_DB" : { | |||
"id" : 15, | |||
"separator": ":", | |||
"instance" : "redis", | |||
"instance" : {% if include_remote_db%} "remote_redis" {% else %} "redis" {% endif %}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pterosaur which design doc are you following? I am not sure, if the DPU_
will be hosted on the NPU side or DPU side?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the design doc to the description and that has been reviewed by community.
# Determine the DB PORT from midplane IP | ||
IFS=. read -r a b c d <<< $midplane_ip | ||
midplane_ip_num=$((a * 256 ** 3 + b * 256 ** 2 + c * 256 + d)) | ||
export REMOTE_DB_PORT=$((6381 + $midplane_ip_num - $midplane_base_ip_num)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pterosaur you can get the ip from the "eth0-midplane" interface. Use the last digit (1 for DPU1, 2 for DPU 2, and so on)
REMOTE_DB_PORT = 6380 + <last digit of the IP>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, done.
Signed-off-by: Ze Gan <[email protected]>
Signed-off-by: Ze Gan <[email protected]>
Signed-off-by: Ze Gan <[email protected]>
For gnmi and other containers, the |
7db4a4d
to
9864aec
Compare
Signed-off-by: Ze Gan <[email protected]>
Done |
@@ -102,23 +111,23 @@ | |||
"DPU_APPL_DB" : { | |||
"id" : 15, | |||
"separator": ":", | |||
"instance" : "redis", | |||
"instance" : {% if include_remote_db%} "remote_redis" {% else %} "redis" {% endif %}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Ze Gan <[email protected]>
Why I did it
According to the HLD: sonic-net/SONiC#1534, update the DPU database configuration.
Work item tracking
How I did it
How to verify it
Check them locally
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)