kvserver: quota pool observability #79756
Labels
A-kv
Anything in KV that doesn't belong in a more specific category.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Is your feature request related to a problem? Please describe.
We know of several instances where the behavior of the quota pool was poorly understood.
The quota pool exports no metrics, nor is there a way to pull information from it proactively.
Common questions are:
Describe the solution you'd like
Metrics:
cockroach/pkg/kv/kvserver/replica_proposal_quota.go
Line 112 in d35cf75
Acquire()
call records its latency. This provides a measure of how pervasively the quota pool throttles across the replicas.Observability via
kvserverpb.RangeInfo
:ApproximateQuota()
(already there)Capacity
cockroach/pkg/kv/kvserver/replica.go
Lines 573 to 585 in 5a7a7bc
[replicaID, ignoreReason]
mirroring the requested metrics above.Problem ranges:
Logging:
Describe alternatives you've considered
Additional context
The above suggestion was written up quickly, and shouldn't be considered final or flawless.
Jira issue: CRDB-15931
The text was updated successfully, but these errors were encountered: