cockroachdb / cockroachdb/cockroach

changefeedccl: improve plan rebalance algorithm

Open
#147,630 1 comment 0 reactions 0 assignees View on GitHub
A-cdc C-enhancement T-cdc
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

It's useful to have balanced changefeed plans, but there are trade-offs involved with setting `changefeed.default_range_distribution_strategy="balanced_simple"`. 1) Since it's a cluster setting, it applies to all changefeeds, 2) the algorithm naively redistributes spans across aggregators with no regard for replica placement. The algorithm could be improved by only rebalancing spans to aggregators mapped to replicas.

Jira issue: CRDB-51174

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.