Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.1.x] Evenly distributing topic partitions when adding node to cluster #9482

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #9344
Fixes #9481,

Using bitfield to randomly sample topic partitions to move when handing
node addition and on demand rebalancing. Randomly choosing partitions
from a topic prevents Redpanda from moving all partitions from the same
topic to newly added node.

Fixes: redpanda-data#9261

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 66f1d7e)
Added test validating if topics are equally spread around the cluster
after reallocating partitions on node addition.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 15af790)
Fixed stopping partition rebalancing by removing only those
reallocations which belongs to domain that does not bring the
improvement instead of the all reallocations.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit eb77041)
@vbotbuildovich vbotbuildovich added this to the v23.1.x-next milestone Mar 15, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Mar 15, 2023
@piyushredpanda piyushredpanda marked this pull request as ready for review March 28, 2023 18:35
@piyushredpanda piyushredpanda modified the milestones: v23.1.x-next, v23.1.4 Mar 28, 2023
@mmaslankaprv mmaslankaprv merged commit 9891364 into redpanda-data:v23.1.x Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants