cockroachdb / cockroachdb/cockroach
kv: audit range snapshot locality
Open
T-kv
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Describe the problem**
Looking through the specific metrics of `range.snapshot.bytes` we see that majority of range snapshots happen cross-zone or cross-region, meaning very few are sent within the local area. This cross zone / region networking is a major expense for customers.
Looking at the [code](https://github.com/cockroachdb/cockroach/blob/6d76d83c6092dc8dc02778fec6b419372c3be69b/pkg/kv/kvserver/replica_command.go#L2810), we see some randomness when choosing a replica, which may lead to less inter-zone / region delegates being chosen to send snapshots to.
**To Reproduce**
Jira issue: CRDB-49502
Contributor guide
Assessment
This issue has not been assessed yet.