resource_control: tell the client which resource groups are noisy, so it stops retrying them
Author: mittalrishabhCreated Sep 25, 2026Updated Sep 29, 2026
Labelstype/feature-request
Feature Request
Is your feature request related to a problem? Please describe:
Symptom: during a noisy-neighbour overload, TiKV CPU stays flat even at maximum backpressure. Read-pool isolation works: the noisy tenant is throttled to its floor and unified read pool CPU drops. But gRPC and raft CPU keep climbing on read_index / read_index_resp volume, so the store's total CPU doesn't come down. Panels: https://github.com/tikv/client-go/pull/2084#issuecomment-5882991358
Configuration:
tikv_client_read_timeout = 200ms,max_execution_time = 1s- Replica read enabled (for example
prefer-leader) - TiKV resource control with noisy-group selection on:
enable-read-admission-control,enable-write-admission-controlorenable-fair-scheduling
Cause: client retries.
- On the overloaded leader, the noisy group's reads are deprioritized, so they hit the 200 ms read timeout.
- The client retries them without backoff (up to 4× within the 1 s deadline) and turns them into follower reads.
- Each follower read comes back to the same leader as a ReadIndex. The retries don't take load off the leader; they add ReadIndex traffic that it serves in gRPC and raft, outside the read pool that isolation shrank.
- TiKV doesn't tell the client which resource groups are noisy, so the client retries every group's requests the same way.
The retry path only runs when the configurable read timeout is below ReadTimeoutShort (30 s). With the default copr timeouts (60 s / 120 s) it never triggers, so this doesn't happen under defaults.
Describe the feature you'd like:
- TiKV: when a node is overloaded, or returns
ServerIsBusy, send the client the list of noisy resource groups. It goes inHealthFeedback, and as a marker onServerIsBusyandDeadlineExceededfor that group's own requests. https://github.com/mittalrishabh/tikv/pull/1 - Client: for reads that would be served by a follower, keep a noisy group's requests on the leader, and back off for 1 s after a
DeadlineExceededorServerIsBusyon them. Stale reads are excluded, since they need no ReadIndex. Other groups keep their normal routing. https://github.com/tikv/client-go/pull/2084
Source: tikv/tikv