-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
kvserver: alter balanceScore result to classify stores into 3 buckets #73614
kvserver: alter balanceScore result to classify stores into 3 buckets #73614
Conversation
In cockroachdb#65379 we changed `balanceScore()` to classify stores in a cluster into 4 buckets: underfull, less-than-mean, more-than-mean and overfull. This allowed for the possibility of thrashing around the mean (i.e. replicas could ping-pong between stores classified as less-than-mean and more-than-mean). This patch moves balanceScore back to its previous incarnation, which only divided resulting stores into 3 buckets. Release justification: Fixes regression introduced in a previous patch Release note: None
4e9b52e
to
e5d3d89
Compare
This is ready for a look. |
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.
Drive-by rubber stamp, was curious.
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.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @aayushshah15)
TFTR! |
Build failed (retrying...): |
This PR was included in a batch that was canceled, it will be automatically retried |
Build succeeded: |
In #65379 we changed
balanceScore()
to classify stores in a cluster into 4 buckets:underfull, less-than-mean, more-than-mean and overfull. This
allowed for the possibility of thrashing around the mean (i.e. replicas
could ping-pong between stores classified as less-than-mean and
more-than-mean).
This patch moves balanceScore back to its previous incarnation, which
only divided resulting stores into 3 buckets.
Release justification: Fixes regression introduced in a previous patch
Release note: None