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

Reroute shards when a node goes under disk watermarks #12452

Merged
merged 1 commit into from Jul 30, 2015

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Jul 24, 2015

Previously we issued a reroute when a node went over the high watermark
in order to move shards away from the node. This change tracks nodes
that have previously been over the high or low watermarks and issues a
reroute when the node goes back underneath the watermark.

This allows shards that may be unassigned to be assigned back to a node
that was previously over the low watermark but no longer is.

Resolves #12422

Boolean passedLow = nodeHasPassedLowWatermark.get(node);

if ((passedHigh != null && passedHigh) || (passedLow != null && passedLow)) {
// The entry has previously been over the high or
Copy link
Member

Choose a reason for hiding this comment

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

The node

@imotov
Copy link
Contributor

imotov commented Jul 30, 2015

Left one minor comment. Otherwise LGTM.

@dakrone dakrone force-pushed the reroute-on-below-watermark branch from c98bffb to 8a62dc7 Compare July 30, 2015 22:32
Previously we issued a reroute when a node went over the high watermark
in order to move shards away from the node. This change tracks nodes
that have previously been over the high or low watermarks and issues a
reroute when the node goes back underneath the watermark.

This allows shards that may be unassigned to be assigned back to a node
that was previously over the low watermark but no longer is.

Resolves elastic#12422
@dakrone dakrone force-pushed the reroute-on-below-watermark branch from 8a62dc7 to 5a8356c Compare July 30, 2015 22:33
@dakrone dakrone merged commit 5a8356c into elastic:master Jul 30, 2015
@dakrone dakrone deleted the reroute-on-below-watermark branch March 3, 2016 19:12
@lcawl lcawl added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. and removed :Allocation labels Feb 13, 2018
@clintongormley clintongormley added :Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) and removed :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Allocation All issues relating to the decision making around placing a shard (both master logic & on the nodes) >enhancement v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants