Skip to content
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

Auto set master/slave replication by cluster topology #356

Merged
merged 2 commits into from
Aug 27, 2021
Merged

Conversation

ShooterIT
Copy link
Member

Now we set cluster topology by clusterx setnodes commands, but replication relationship still need to set manually, actually, we could learn node role from cluster topology, so we will remove its master for master node, and set its master for replica node, users don't need to extra set replication relationship.

Copy link
Member

@git-hulk git-hulk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

@ShooterIT ShooterIT merged commit 7fcce49 into unstable Aug 27, 2021
@ShooterIT ShooterIT deleted the auto-repl branch August 27, 2021 07:11
ShooterIT added a commit to ShooterIT/kvrocks that referenced this pull request Sep 10, 2021
Before we set cluster topology by CLUSTERX SETNODES commands, but replication
relationship still need to set manually, actually, we could learn node role from
cluster topology, so we will remove its master for master node, and set its master
for replica node, users don't need to extra set replication relationship.
@ShooterIT ShooterIT mentioned this pull request Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants