-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
redis-cli: add connect master
command when we are connecting replica and we want to connect master
#9997
base: unstable
Are you sure you want to change the base?
Conversation
and we want to connect master.
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.
seems useful to me.
Updated. A little concern about why |
@redis/core-team please approve or comment. |
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.
LGTM
|
This PR adds
connect master
andconnect replica
to redis-cli to accommodateconnect <host> <port>
.Sometimes I want to connect to master, so I connect to one node, execute
INFO replication
to know whether this node is master.If not, I execute
connect master_host master_port
.I think it's useful to add
connect master
in redis-cli to automate this.