cockroachdb / cockroachdb/cockroach

kvserver: improve the observability of unavailable ranges

Open
#146,918 2 comments 0 reactions 0 assignees View on GitHub
branch-master C-enhancement E-starter O-support P-3 T-kv
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In cases where we are investigating why the [unavailable ranges metric](https://github.com/cockroachdb/cockroach/blob/f903e26dff81dacc1e67662cfa9652b49d82a9c2/pkg/kv/kvserver/metrics.go#L143) was showing some unavailable ranges in the past, it would be nice if there is extra observability on which ranges were considered unavailable.

We could try to log which ranges are considered unavailable (every minute maybe). We need to make sure that we are not introducing too much logging in cases where there are many ranges that are considered unavailable.

Jira issue: CRDB-50792

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.