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

kvserver: alter balanceScore result to classify stores into 3 buckets #73614

Merged

Conversation

aayushshah15
Copy link
Contributor

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

@aayushshah15 aayushshah15 requested a review from a team as a code owner December 8, 2021 18:38
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aayushshah15
Copy link
Contributor Author

I separated this commit out from #72296 because it is a dependency of #73597

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
@aayushshah15
Copy link
Contributor Author

This is ready for a look.

Copy link
Contributor

@irfansharif irfansharif left a 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.

Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @aayushshah15)

@aayushshah15
Copy link
Contributor Author

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Dec 16, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Dec 16, 2021

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Dec 17, 2021

Build succeeded:

@craig craig bot merged commit 9edb27f into cockroachdb:master Dec 17, 2021
@aayushshah15 aayushshah15 deleted the 20211208_revertBalanceScoreComputation branch December 17, 2021 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants