Skip to content

sonic-db-cli PING doesn't support to only ping dbs in certain redis server instance.  #91

@BrynXu

Description

@BrynXu

Sonic counts on DBInterface code here to set notify-keyspace-events as AKE for each db. This is done through calling sonic-db-cli in postStart() from database.sh.
It worked well as long as we start redis server from docker-database container for all dbs. Now we start to support sonic voq chassis and have a separate container, docker-database-chassis, to start all chassis dbs in new redis server instance. The chassis container starts before database container, as a result, sonic-db-cli PING wont work for it since not all dbs are available at that time.
The solution is to enhance sonic-db-cli to ping dbs from a given redis server instance, something like this: sonic-db-cl PING -i redis-chassis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions