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.92k stars 3.78k forks source link

changefeedccl: make `changefeed.balance_range_distribution.sensitivity` more useful #120427

Open jayshrivastava opened 6 months ago

jayshrivastava commented 6 months ago

changefeed.balance_range_distribution.sensitivity isn't very useful. It's currently used to make rebalancing less uniform (by preserving the original plan provided by distsql).

This can be made more useful. For example, if the number of ranges is below X, rebalancing should put all the spans on one partition. This is a rough idea which needs design. There are more complications - for example, what happens when the table grows to a larger number of ranges? What if there are many changefeeds which all get planned on one node?

Jira issue: CRDB-36687

blathers-crl[bot] commented 6 months ago

cc @cockroachdb/cdc