-
Notifications
You must be signed in to change notification settings - Fork 4.1k
kvserver: quota pool observability #79756
Copy link
Copy link
Open
Labels
A-kvAnything in KV that doesn't belong in a more specific category.Anything in KV that doesn't belong in a more specific category.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV TeamKV Team
Metadata
Metadata
Assignees
Labels
A-kvAnything in KV that doesn't belong in a more specific category.Anything in KV that doesn't belong in a more specific category.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV TeamKV 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)Capacitycockroach/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