Allow nodetool cms reconfigure to ignore specific hosts - #5084
Open
nvharikrishna wants to merge 1 commit into
Open
Allow nodetool cms reconfigure to ignore specific hosts#5084nvharikrishna wants to merge 1 commit into
nvharikrishna wants to merge 1 commit into
Conversation
Add a --ignore option to nodetool cms reconfigure. Hosts given to it are excluded from the new CMS, on top of any nodes that are already down. This helps when shrinking a cluster. Today, decommissioning a CMS member hands that role to another node which may itself be due for decommission, so the CMS has to be reconfigured again and again. Excluding the departing nodes up front keeps CMS membership stable for the whole shrink, because decommissioning a node that is not a CMS member does not trigger a reconfiguration. The ignore list applies to that one command only. It is not stored, so cms describe still reports whether the CMS matches the nodes currently in the cluster. patch by nvharikrishna; reviewed by <Reviewers> for CASSANDRA-21627
smiklosovic
reviewed
Aug 31, 2026
| description = "Hosts to exclude from the new CMS, in addition to any which are currently down. Useful " + | ||
| "before shrinking a cluster: excluding the nodes which are about to be decommissioned " + | ||
| "keeps the CMS membership stable, avoiding a reconfiguration per decommissioned member.") | ||
| private List<String> ignoredEndpoints = new ArrayList<>(); |
Contributor
There was a problem hiding this comment.
it would be (maybe) cool if this was accepting CIDR / whole subnets. This would basically ignore whole set of nodes instead of enumerating them one by one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
--ignoreoption tonodetool cms reconfigure. Hosts given to it are excluded from the new CMS, on top of any nodes that are already down.This helps when shrinking a cluster. Today, decommissioning a CMS member hands that role to another node which may itself be due for decommission, so the CMS has to be reconfigured again and again. Excluding the departing nodes up front keeps CMS membership stable for the whole shrink, because decommissioning a node that is not a CMS member does not trigger a reconfiguration.
The ignore list applies to that one command only. It is not stored, so cms describe still reports whether the CMS matches the nodes currently in the cluster.
patch by nvharikrishna; reviewed by for CASSANDRA-21627
CASSANDRA-21627