-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Log total ingest nodes, don't call reroute when only ML nodes not hot-spotted #137417
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
Conversation
|
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
| var totalIngestionNodes = 0; | ||
| for (var entry : clusterInfo.getNodeUsageStatsForThreadPools().entrySet()) { | ||
| final var nodeId = entry.getKey(); | ||
| final var usageStats = entry.getValue(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just changed to a for-loop so we didn't need to create all these AtomicXXX to store the counter/boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some minor nits.
| // TODO (ES-13314): consider stateful data tiers | ||
| return; | ||
| } | ||
| totalIngestionNodes++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: seeing ingestion might be giving me indigestion (I couldn't resist...).
I haven't seen ingestion elsewhere. Should this be totalIngestNodes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in cfbb6fe
...rk/src/main/java/org/elasticsearch/action/support/replication/ClusterStateCreationUtils.java
Show resolved
Hide resolved
.../test/java/org/elasticsearch/cluster/routing/allocation/WriteLoadConstraintMonitorTests.java
Show resolved
Hide resolved
b5c8ae9 to
34d92df
Compare
We log a message to indicate that some nodes are hot-spotted which includes a total node count, e.g.
This PR changes that message to indicate how many "ingest" nodes, or nodes that might be able to have shards moved to them there are.
The PR also excludes ML nodes from that count and from consideration when deciding if there are non-hot-spotted nodes available. Previously only search nodes were excluded.