cockroachdb / cockroachdb/cockroach

kvserver: lease transfers resulting from preference violations are unpaced

Open
#173,371 0 comments 0 reactions 0 assignees View on GitHub
A-kv-distribution branch-master C-bug O-support T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

**Describe the problem**

We purposefully do not pace lease transfers when they are the result of preference violations. This makes sense in many cases, but when there are many thousands of leases to move, this can cause a flurry of lease transfers, impacting tail latencies as a request hits many NLHEs at once.

One solution here may be to provide an opt-in delay for lease-preference induced transfers.

Jira issue: CRDB-66686

Contributor guide

Open the contributing guide

Research direction

Start with the issue description and Jira issue CRDB-66686, then trace the existing pacing behavior for lease transfers caused by preference violations. Clarify the opt-in delay design and define done as preventing transfer bursts while preserving the intended preference-repair behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.