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

Support multiple preferred leader #90

Closed
Git-Yang opened this issue Aug 19, 2021 · 0 comments
Closed

Support multiple preferred leader #90

Git-Yang opened this issue Aug 19, 2021 · 0 comments
Labels
enhancement enhancement

Comments

@Git-Yang
Copy link
Contributor

1. Background
In the mixed deployment mode of namesrv and broker, we hope that the machine/node where namesrv and broker are mixed will not be selected as the leader, and other machines/nodes can be selected as the leader. At the same time, we hope to trigger the re-election as little as possible, so multiple nodes are set as the preferredLeader to reduce the occurrence of this situation.
2. Optimization

  • Allow multiple nodes to be set as preferredLeader.
@RongtongJin RongtongJin added the enhancement enhancement label Sep 26, 2021
RongtongJin pushed a commit that referenced this issue Jan 7, 2022
* suppport multiple preferred leader

Signed-off-by: zhangyang21 <zhangyang21@xiaomi.com>

* test: increase sleep time to pass UT

Signed-off-by: zhangyang21 <zhangyang21@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement
Projects
None yet
Development

No branches or pull requests

2 participants