cockroachdb / cockroachdb/cockroach

kvserver: smear size based range splits

Open
#125,929 1 comment 0 reactions 0 assignees View on GitHub
A-kv-distribution C-enhancement O-testcluster P-3 T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

When running a uniform write workload, on a uniformly sized keyspace, ranges will split in half at approximately the same time.

Normally, when a few ranges split this isn't expected to have any impact as https://github.com/cockroachdb/cockroach/issues/22348 removes the latch contention latency. However, scanning the range data simultaneously for many splits can cause CPU exhaustion, which does result in higher tail latency.

![image](https://github.com/cockroachdb/cockroach/assets/39606633/1698fc26-df38-43d0-812b-d0634dd005a5)
![image](https://github.com/cockroachdb/cockroach/assets/39606633/3948702d-cf12-421b-bc73-d89393930341)

This issue is to smear, or space out size-based range splits so that they do not all occur at the same time for uniform workloads.

Jira issue: CRDB-39670

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.