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

Prepare leader_balancer for node-local core assignment #16970

Merged
merged 7 commits into from
Mar 11, 2024

Conversation

ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Mar 8, 2024

After node-local partition-core assignment becomes enabled, we can no longer rely on global replica shard info from the topic table. Use shard info from the health report instead.

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.3.x
  • v23.2.x

Release Notes

  • none

This feature flag will signify nodes readiness to switch to node-local
assignment of partitions to cores.
Removed piece assumes that partition.replicas contains only followers
and therefore contains assignment.to, but not assignment.from (under
this assumption it changes assignment.to to assignment.from). But in
reality partition.replicas contains all replicas, and therefore both
assignment.to and assignment.from. As other code doesn't make any
assumptions about presence or absence of the leader shard from the list
of replicas in the index, we can simply use the original list of
replicas.
After node-local partition-core assignment becomes enabled, we can no
longer rely on global replica shard info from the topic table. Use shard
info from the health report instead.
@ztlpn
Copy link
Contributor Author

ztlpn commented Mar 8, 2024

/ci-repeat

@ztlpn ztlpn marked this pull request as ready for review March 8, 2024 18:53
@mmaslankaprv
Copy link
Member

this looks good, i am wondering what will the impact of this change be for the deployments with large number of partitions

@ztlpn
Copy link
Contributor Author

ztlpn commented Mar 11, 2024

/cdt
rptest/scale_tests/many_partitions_test.py

@ztlpn ztlpn merged commit 4b205ea into redpanda-data:dev Mar 11, 2024
18 checks passed
@ztlpn ztlpn deleted the flex-assignment-lb branch April 30, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants