-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Add master/slave option in --cluster call command #6491
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
|
Did not use --master or --slave, since there is already a --slave sub-command, for slave mode. So it might create conflict while parsing the command. |
|
Why do you want to use the |
|
I have currently implemented the command like this, Or if you want me to implement in some other way, can you let me know. So I can make those changes? This change might not be necessary for set command, but it might be useful for calling all slaves for setting masterauth instead of setting it in each slave separately. This is one case where @artix75 Can you suggest any modification if necessary so that I can work on that. |
|
@thandayuthapani I just asked since the use-case of your example is quite weird/rare (it makes no sense IMHO to use the Anyway, I'd suggest using the conventional --cluster-* pattern for the command-line options. So, instead of |
|
Hi @thandayuthapani , I checked current command-line options and agreed with @artix75 . What I am understanding is: '--cluster-only-masters' or '--cluster-only-slaves' specifies on which Redis servers we want to operate; the sub-commands specify which operations we want to execute. |
|
@artix75 Have made those changes. Please have a look. |
artix75
left a 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.
Please, remind to document new command options (--cluster-only-*) in the --cluster help too (see the clusterManagerCommandHelp function). Thank you.
|
@artix75 Have made those changes.. Please have a look. |
|
@artix75 Have made those changes. Please have a look. |
|
@artix75 Is there any other changes to be done for this PR? |
Now it's ok for me. Could you compact this PR in just one commit, in order to avoid all those "Addressed review comments" commits? |
|
@artix75 Have squashed all those commits into single commit. |
@thandayuthapani It's ok for me, thank you. |
|
Hi @antirez, can you please take a look this PR to see if it can be merged? |
itamarhaber
left a 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.
Hi @thandayuthapani - sorry for the long delay, I think this can be finally merged, thanks.
|
Fixes #6474 |
* Add master/slave option in --cluster call command * Update src/redis-cli.c * Update src/redis-cli.c Co-authored-by: Itamar Haber <itamar@redislabs.com> (cherry picked from commit f22f64f)
…is#6491) * Add master/slave option in --cluster call command * Update src/redis-cli.c * Update src/redis-cli.c Co-authored-by: Itamar Haber <itamar@redislabs.com>
|
Please update PR description for sample commands. but this doesn't: |
@hengku @itamarhaber Please have a look
Related to https://github.com/antirez/redis/issues/6474
Output Log:
Default Option:
Master Option:
Slave Option: