cockroachdb / cockroachdb/cockroach

sql/catalog/lease: make lease acquisition concurrency configurable

Open
#96,795 2 comments 0 reactions 0 assignees View on GitHub
A-schema-descriptors A-schema-leasing C-enhancement T-sql-foundations
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 is a hard-coded maximum concurrency of lease acquisition per node set to 5. This can cause problems when lease acquisition is extremely slow, as can happen in geo-distributed clusters with very high inter-node latency.

**Describe the solution you'd like**
We should make the concurrency a cluster setting.

**Describe alternatives you've considered**
There are other approaches to reducing the duration of lease acquisition, but they all have some tradeoffs. Making the tables which are read global would likely help a lot. Being thoughtful about replica placement so that the committing quorum on the writes is faster could also help.

Removing the round-trips due to cross-descriptor validation as described in https://github.com/cockroachdb/cockroach/issues/95764 would also help.

Jira issue: CRDB-24337

Epic CRDB-60956

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.