kvserver: metric and logging to pinpoint liveness leaseholder #99472
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
O-support
Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs
Is your feature request related to a problem? Please describe.
The
leases.expiration
metric has been useful as a tool to pinpoint the liveness leaseholder, but it's annoying because there are currently two expiration-based ranges: meta1/2 and the liveness range. Also, we're possibly going to have many more expiration-based ranges. The liveness range is very important: we need to have a perfect lease history for it.Describe the solution you'd like
leases.liveness
that is 1 if and only if the store has a liveness replica that is active leaseholder.x-ref https://github.com/cockroachlabs/support/issues/2182
Jira issue: CRDB-25893
Epic CRDB-27235
The text was updated successfully, but these errors were encountered: