cockroachdb / cockroachdb/cockroach

allocator: add cluster setting to disable lease transfers

Open
#110,740 0 comments 0 reactions 0 assignees View on GitHub
A-kv-distribution C-enhancement T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Is your feature request related to a problem? Please describe.**
Currently, there are different cluster settings to disable [store rebalancer (cpu/qps) lease transfers](https://github.com/cockroachdb/cockroach/blob/b5cef207d5b5905f8a845da5795f1231c7c7545c/pkg/kv/kvserver/store_rebalancer.go#L75-L75), follow-the-workload lease transfers and to [reduce the lease transfer interval of the replicate queue](https://github.com/cockroachdb/cockroach/blob/b5cef207d5b5905f8a845da5795f1231c7c7545c/pkg/kv/kvserver/replicate_queue.go#L97-L97).

There isn't a method to outright disable all of these, or alternatively disable lease count rebalancing.

**Describe the solution you'd like**
Add a cluster setting to disable all allocator lease transfers, except those explicitly required such as drain/decommission.

Jira issue: CRDB-31586

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.