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

While resharding, respect configured shard transfer limits #4493

Merged
merged 6 commits into from
Jun 20, 2024

Conversation

timvisee
Copy link
Member

@timvisee timvisee commented Jun 18, 2024

Tracked in: #4213
Depends on: #4491

A user may configure incoming and outgoing shard transfer limits. This PR makes sure to respect these limits during resharding.

This also selects peers with the lowest number of shards while replicating to balance the shard distribution.

Tasks

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

@timvisee timvisee mentioned this pull request Jun 18, 2024
63 tasks
@timvisee timvisee force-pushed the resharding-migrate-respect-transfer-limits branch from bde3bd6 to 50180e5 Compare June 18, 2024 15:54
Base automatically changed from resharding-migrate-local to dev June 19, 2024 12:11
@timvisee timvisee force-pushed the resharding-migrate-respect-transfer-limits branch from 50180e5 to 262b202 Compare June 19, 2024 12:12
@timvisee timvisee marked this pull request as ready for review June 19, 2024 12:12
@timvisee timvisee requested a review from ffuugoo June 19, 2024 12:12
@timvisee timvisee force-pushed the resharding-migrate-respect-transfer-limits branch from 262b202 to 40833fe Compare June 19, 2024 15:26
@timvisee timvisee force-pushed the resharding-migrate-respect-transfer-limits branch from 40833fe to 2f831a0 Compare June 20, 2024 12:19
@timvisee timvisee merged commit 4edc110 into dev Jun 20, 2024
17 checks passed
@timvisee timvisee deleted the resharding-migrate-respect-transfer-limits branch June 20, 2024 13:46
generall pushed a commit that referenced this pull request Jun 21, 2024
* Respect shard transfer limits in resharding point migrations

* Simplify check for transfer limits, always allow local transfer

* Respect shard transfer limits in resharding replication

* Simplify shard transfer limit condition

* Balance resharding by replicating to peers with lowest number of shards

* Fix clippy warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants