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

clickhouse-keeper: add 4-letter command for giving up leadership #56352

Closed
chhetripradeep opened this issue Nov 6, 2023 · 1 comment · Fixed by #56620
Closed

clickhouse-keeper: add 4-letter command for giving up leadership #56352

chhetripradeep opened this issue Nov 6, 2023 · 1 comment · Fixed by #56620
Assignees
Labels
comp-keeper ClickHouse Keeper related feature

Comments

@chhetripradeep
Copy link
Contributor

Use case

I would like to proactively switch leader in a keeper cluster before stopping a leader. This is useful in many situations like:

  • Hardware maintenance
  • Keeper upgrades

Describe the solution you'd like

Currently we have rqld where a node can request to become leader. I am looking for opposite of this command.

Describe alternatives you've considered

Only option right now is to mark the current leader as unhealthy and let raft detect that the leader is down which in turn triggers leader election.

@chhetripradeep
Copy link
Contributor Author

I would like to pick this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-keeper ClickHouse Keeper related feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants