cockroachdb / cockroachdb/cockroach

spanconfig: tooling for looking up span configs

Open
#143,760 2 comments 0 reactions 0 assignees View on GitHub
A-kv-observability branch-master C-bug O-support P-3 T-sql-foundations
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

As we saw in a recent escalation (https://github.com/cockroachlabs/support/issues/3222), looking up span configs in a multi-tenant cluster is not very straightforward. We used this query for a range with `/Tenant//Table/`:

```
select crdb_internal.pretty_key(start_key, -1), crdb_internal.pretty_key(end_key, -1), crdb_internal.pb_to_json('cockroach.roachpb.SpanConfig', config) from system.span_configurations where crdb_internal.pretty_key(start_key, -1) like '/Tenant//Table/%';
```

This results is a span config that doesn't include span config bounds since those are applied at a higher layer (e.g. in the allocator).

We need better tooling to make this lookup easier and to include span config bounds.

Jira issue: CRDB-49026

Epic CRDB-2245

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.