-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Always fetch node usage stats for write load decider #136212
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
Always fetch node usage stats for write load decider #136212
Conversation
The NodeUsageStats Action will not be unconditionally called every 30 seconds, regardless of the write load decider being enabled. It is a lightweight action that fetches stats that are collected on the node regardless. This supports better seeing what happens when the write load decider is enabled, providing a before- (not just after) enablement picture. ES-12631
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
57d1d26
to
9948453
Compare
randomBoolean() | ||
? WriteLoadConstraintSettings.WriteLoadDeciderStatus.ENABLED | ||
: WriteLoadConstraintSettings.WriteLoadDeciderStatus.LOW_THRESHOLD_ONLY | ||
); |
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.
Doesn't this change mean the above test is invalid (i.e. we should always fetch the node usage stats)?
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.
Ah the test is indeed broken. LGTM when this is fixed.
The NodeUsageStats* Action will now be unconditionally called
every 30 seconds, regardless of the write load decider being
enabled. It is a lightweight action that fetches stats that
are collected on the node regardless. This supports better
seeing what happens when the write load decider is enabled,
providing a before- (not just after) enablement picture.
ES-12631