Skip to content

kvserver: add minimum cpu lb split threshold#98250

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230308.min-cpu-split-thresh
Mar 9, 2023
Merged

kvserver: add minimum cpu lb split threshold#98250
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230308.min-cpu-split-thresh

Conversation

@kvoli
Copy link
Copy Markdown
Contributor

@kvoli kvoli commented Mar 8, 2023

Previously, kv.range_split.load_cpu_threshold had no minimum setting value. It is undesirable to allow users to set this setting to low as excessive splitting may occur.

kv.range_split.load_cpu_threshold now has a minimum setting value of 10ms.

See #96869 for additional context on the threshold.

Resolves: #98107

Release note (ops change): kv.range_split.load_cpu_threshold now has a minimum setting value of 10ms.

@kvoli kvoli requested a review from a team as a code owner March 8, 2023 21:47
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 8, 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.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Previously, `kv.range_split.load_cpu_threshold` had no minimum setting
value. It is undesirable to allow users to set this setting to low as
excessive splitting may occur.

`kv.range_split.load_cpu_threshold` now has a minimum setting value of
`10ms`.

Resolves: cockroachdb#98107

Release note (ops change): `kv.range_split.load_cpu_threshold` now has a
minimum setting value of `10ms`.
@kvoli kvoli force-pushed the 230308.min-cpu-split-thresh branch from 9ee220b to 903747d Compare March 8, 2023 22:20
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 8, 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?

Thank you for updating your pull request.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

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

@blathers-crl blathers-crl bot added the O-community Originated from the community label Mar 8, 2023
@kvoli kvoli requested a review from andrewbaptist March 8, 2023 23:02
@kvoli kvoli self-assigned this Mar 8, 2023
@kvoli kvoli removed the O-community Originated from the community label Mar 9, 2023
Copy link
Copy Markdown

@andrewbaptist andrewbaptist left a comment

Choose a reason for hiding this comment

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

LGTM
As noted some of these parameters should not be TenantWritable, but you were going to create a separate PR for that.

@kvoli
Copy link
Copy Markdown
Contributor Author

kvoli commented Mar 9, 2023

TYFTR

As noted some of these parameters should not be TenantWritable, but you were going to create a separate PR for that.

Filed #98347

@kvoli
Copy link
Copy Markdown
Contributor Author

kvoli commented Mar 9, 2023

bors r=andrewbaptist

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 9, 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: add minimum to cpu split threshold

3 participants