cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.16k stars 3.82k forks source link

rpc: metrics for inbound and outbound RPC connections #92067

Open erikgrinaker opened 2 years ago

erikgrinaker commented 2 years ago

We don't currently have metrics for the number of inbound and outbound RPC connections to a node. This would be useful to debug asymmetric network partitions.

Jira issue: CRDB-21559

tbg commented 1 year ago

Related to https://github.com/cockroachdb/cockroach/issues/71193, which proposes something more powerful.

This would be useful to debug asymmetric network partitions.

We need to keep in mind that the number of connections is a little unpredictable since nodes will connect to peers only on-demand and also there are multiple connection classes. So I'm not sure how easily we could use this metric to reason about network partitions.