Skip to content

kvserver: increase cpu lb split threshold to 500ms#97113

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230214.cpu-split-threshold
Feb 21, 2023
Merged

kvserver: increase cpu lb split threshold to 500ms#97113
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230214.cpu-split-threshold

Conversation

@kvoli
Copy link
Copy Markdown
Contributor

@kvoli kvoli commented Feb 14, 2023

This commit increases the default value of
kv.range_split.load_cpu_threshold to 500ms from the previous default value of 250ms. Experiments detailed in #96869 showed moderate performance gains between 500ms and 250ms, without a significant downside on rebalancing.

Resolves: #96869

Release note (ops change): The default value of
kv.range_split.load_cpu_threshold is increased from 250ms to 500ms. This threshold declares the CPU per-second value above which a range will be split. The value was selected based on performance experiments.

@kvoli kvoli requested a review from a team as a code owner February 14, 2023 15:09
@kvoli kvoli self-assigned this Feb 14, 2023
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Feb 14, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

This commit increases the default value of
`kv.range_split.load_cpu_threshold` to `500ms` from the previous default
value of `250ms`. Experiments detailed in cockroachdb#96869 showed moderate
performance gains between `500ms` and `250ms`, without a significant
downside on rebalancing.

Resolves: cockroachdb#96869

Release note (ops change): The default value of
`kv.range_split.load_cpu_threshold` is increased from `250ms` to
`500ms`. This threshold declares the CPU per-second value above which a
range will be split. The value was selected based on performance
experiments.
@kvoli kvoli force-pushed the 230214.cpu-split-threshold branch from 4af46ff to 9bb2043 Compare February 14, 2023 16:33
@kvoli kvoli requested a review from nvb February 14, 2023 17:54
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 @kvoli)

@kvoli
Copy link
Copy Markdown
Contributor Author

kvoli commented Feb 21, 2023

bors r=nvanbenschoten

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Feb 21, 2023

Build succeeded:

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.

kvserver: benchmark different cpu load based split thresholds

3 participants