Repository navigation
redis: use local sockets by default in sonic-db-cli - #1260
Draft
ashutosh-agrawal wants to merge 1 commit into
Draft
ashutosh-agrawal wants to merge 1 commit into
ashutosh-agrawal wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
ashutosh-agrawal
force-pushed
the
redis-cli-local-uds-default
branch
from
October 6, 2026 21:52
18f3836 to
8ec54fb
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Member
Author
|
/azp retry |
|
Command 'retry' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
Member
Author
|
/azpw retry |
Collaborator
|
Retrying failed(or canceled) jobs... |
Collaborator
|
Retrying failed(or canceled) stages in build 1240625: ✅Stage Build:
|
Signed-off-by: Ashutosh Agrawal <ashu@cisco.com>
ashutosh-agrawal
force-pushed
the
redis-cli-local-uds-default
branch
from
October 9, 2026 05:30
8ec54fb to
ff817da
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
sonic-db-clito use the configured Unix socket for local databases by default.redis_chassis.serverand database entries that do not have a Unix socket.-t/--tcpas an explicit TCP override.-s/--unixsocketbehavior.Why I did it
Local
sonic-db-clicalls should keep working after the local Redis TCP listener is disabled. The CLI already has the socket, host, and port for each database, so it can make the choice directly without adding a shared resolver to swss-common.This change leaves chassis and remote database entries on TCP while moving ordinary local and namespace database calls to Unix sockets.
How I verified it
sonic-db-cliand its existing help-output fixture.