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

feat: Introduce table resize plan for scaling. #14235

Merged
merged 4 commits into from
Dec 28, 2023
Merged

Conversation

shanicky
Copy link
Contributor

@shanicky shanicky commented Dec 27, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

first part of #13954

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

@shanicky shanicky force-pushed the peng/new-schedule branch 7 times, most recently from b31a26f to 33dbda5 Compare December 27, 2023 10:50
Signed-off-by: Shanicky Chen <[email protected]>
Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

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

LGTM, let's see whether if using sorted pu in scheduler can fix the in-consistency issue.

@shanicky shanicky added this pull request to the merge queue Dec 28, 2023
Merged via the queue into main with commit 680e398 Dec 28, 2023
29 checks passed
@shanicky shanicky deleted the peng/new-schedule branch December 28, 2023 07:34
Copy link
Member

@BugenZhao BugenZhao left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +475 to +476
FixedParallelism fixed = 1;
AutoParallelism auto = 2;
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind adding some comments to describe them? For example, the respective behavior when auto scaling is on/off.

Comment on lines +2584 to +2587
// We redistribute parallel units (which will be ensembles in the future) through a simple consistent hashing ring.
// Note that we have added some simple logic here to ensure the consistency of the ratio between each slot,
// especially when equal division is needed.
pub fn schedule_units_for_slots(
Copy link
Member

Choose a reason for hiding this comment

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

What about extracting this utility into separate files?

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.

3 participants