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

release-21.1: kv: bump kv.range_merge.queue_interval to 5s #65358

Merged

Conversation

nvanbenschoten
Copy link
Member

Backport 1/1 commits from #64239.

/cc @cockroachdb/release


Informs #62700.

This commit bumps the default value for the kv.range_merge.queue_interval cluster setting from 1s to 5s. This setting serves as a per-store rate limit on the frequency at which range merges will be initiated. We've seen in a few issues, including #62700, that excessive range merge traffic can cause instability in a cluster. There's very little reason to be aggressive about range merging, as range merges are rarely needed with any urgency. However, there are good reasons to be conservative about them.

This change can also be justified as a (late) reaction to the increased max range size from 64MB to 512MB. A range merge may need to rebalance replicas in a range, so its cost can be a function of the sizes of ranges. This means that if range merges are now more expensive, we should be running them less frequently.

Informs cockroachdb#62700.

This commit bumps the default value for the `kv.range_merge.queue_interval`
cluster setting from 1s to 5s. This setting serves as a per-store rate limit on
the number of range merges that will be initiated. We've seen in a few issues
like cockroachdb#62700 that excessive range merge traffic can cause instability in a
cluster. There's very little reason to be aggressive about range merging, as
range merges are rarely needed with any urgency. However, there are good reasons
to be conservative about them.

This change can also be justified as a (late) reaction to the increased max
range size from 64MB to 512MB. A range merge may need to rebalance replicas in a
range, so its cost can be a function of the sizes of ranges. This means that if
range merges are now more expensive, we should be running them less frequently.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten merged commit 66c7f65 into cockroachdb:release-21.1 May 18, 2021
@nvanbenschoten nvanbenschoten deleted the backport21.1-64239 branch June 11, 2021 03:16
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.

3 participants