Skip to content

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

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
aayushshah15:20211208_revertBalanceScoreComputation
Dec 17, 2021
Merged

kvserver: alter balanceScore result to classify stores into 3 buckets#73614
craig[bot] merged 1 commit intocockroachdb:masterfrom
aayushshah15:20211208_revertBalanceScoreComputation

Conversation

@aayushshah15
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

@aayushshah15
Copy link
Copy Markdown
Contributor Author

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

@aayushshah15 aayushshah15 requested a review from nvb December 8, 2021 18:39
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
Copy Markdown
Contributor Author

This is ready for a look.

Copy link
Copy Markdown
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
Copy Markdown
Contributor

@nvb nvb 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
Copy Markdown
Contributor Author

TFTR!
bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 16, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
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
Copy Markdown
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