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

[v22.3.x] Backport of #9622 #9992 #9789 #10381

Merged
merged 11 commits into from
Apr 27, 2023

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Apr 26, 2023

Backporting #9622 & #9992 & #9789
Dropped 7059fd1 introducing test due to conflicts.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.1.x
  • v22.3.x
  • v22.2.x

Release Notes

  • none

@mmaslankaprv mmaslankaprv changed the title [v22.3.x] Backport of #9622 [v22.3.x] Backport of #9622 #9992 Apr 26, 2023
@mmaslankaprv mmaslankaprv force-pushed the v22.3.x_rebalancing branch 2 times, most recently from 487a9d5 to bab3b4a Compare April 26, 2023 15:34
@BenPope BenPope added the kind/backport PRs targeting a stable branch label Apr 26, 2023
@BenPope BenPope added this to the v22.3.x-next milestone Apr 26, 2023
@mmaslankaprv mmaslankaprv marked this pull request as ready for review April 27, 2023 05:38
@vshtokman vshtokman modified the milestones: v22.3.x-next, v22.3.17 Apr 27, 2023
Copy link
Member

@dotnwat dotnwat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backporting #9622 & #9992

Why do these two PRs have a combined 10 commits, but this backport has 15 commits?

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit fd7caa8)
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit a308539)
Introduced a reallation strategy type to make reallocation code testable
and customizable outside of the members backend.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit d5716ab)
Using reservoir sampling to chose the replicas that are going to be
reallocated to the new node provides better uniformity of topic replicas
distribution across the cluster. Additionally reservoir sampling
algorithm isn't prone to not selecting enough reallocations.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit d2456cc)
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit fed7e9e)
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 3f3e374)
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 9436afc)
Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 09c5528)
Replaced a vector of reallcations with a map where `ntp` is a key. This
will allow for fast lookups when checking if partition was already
scheduled for realloaction.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit efa7edb)
Renamed `reallocate_replica_set` method to
`reconcile_reallocation_state` to express the complexity of state
changes that the method is responsible for.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit c70a861)
Changed the logic in `cluster::members_backend` to calculate
reallocations when pending reallocation count is smaller than max
reallocation batch size. This way the available learner recovery
bandwith may be fully utilized and node operations may finish faster.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
(cherry picked from commit 939bf11)
@mmaslankaprv
Copy link
Member Author

Backporting #9622 & #9992

Why do these two PRs have a combined 10 commits, but this backport has 15 commits?

it contained some commits from other backport PR, rebased it, should be ok now

@dotnwat
Copy link
Member

dotnwat commented Apr 27, 2023

Backporting #9622 & #9992

Why do these two PRs have a combined 10 commits, but this backport has 15 commits?

it contained some commits from other backport PR, rebased it, should be ok now

now it has 11 instead of 10 commits and some seem to be dropped and some seem new?

@vshtokman
Copy link
Contributor

vshtokman commented Apr 27, 2023

It does look like this PR added:

  • c/balancer_planner: change reallocation failure message to info level

  • c/members_backend: add logging of reallocation failures

and is missing:

  • c/tests: added backend reallocation strategy test

@mmaslankaprv mmaslankaprv changed the title [v22.3.x] Backport of #9622 #9992 [v22.3.x] Backport of #9622 #9992 #9789 Apr 27, 2023
@vshtokman vshtokman merged commit a3a5c72 into redpanda-data:v22.3.x Apr 27, 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.

4 participants