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
29.86k stars 3.77k forks source link

changefeedccl: add observability into number of ranges watched by aggregators #124705

Open andyyang890 opened 3 months ago

andyyang890 commented 3 months ago

It would be useful to have a metric similar to changefeed.lagging_ranges that counts all ranges being watched by an aggregator (maybe named changefeed.aggregator_ranges?) so that we can see how balanced the distribution of ranges are for a changefeed. Users could also use this to guide their decisions on when they might want to force a changefeed to replan.

This would've been helpful while investigating https://github.com/cockroachlabs/support/issues/2955.

Jira issue: CRDB-39023

Epic CRDB-37337

blathers-crl[bot] commented 3 months ago

cc @cockroachdb/cdc