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

sort the clusters by descending order of decimal part in dynamicDivideReplicas #533

Merged
merged 2 commits into from Nov 9, 2022

Conversation

Garrybest
Copy link
Member

@Garrybest Garrybest commented Nov 8, 2022

Signed-off-by: Garrybest garrybest@foxmail.com

What type of PR is this?

kind/bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #526

Special notes for your reviewer:

…ynamicDivideReplicas

Signed-off-by: Garrybest <garrybest@foxmail.com>
@Garrybest Garrybest requested review from a team as code owners November 8, 2022 12:02
@Garrybest Garrybest requested a review from dixudx November 8, 2022 12:02
Copy link
Member

@dixudx dixudx left a comment

Choose a reason for hiding this comment

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

Looks awesome!

@dixudx dixudx added this to the v0.13.0 milestone Nov 8, 2022
@dixudx dixudx added the kind/bug Something isn't working label Nov 8, 2022
@dixudx
Copy link
Member

dixudx commented Nov 8, 2022

Seems we need to improve the algorithm for dynamic assigner as well.

Signed-off-by: Garrybest <garrybest@foxmail.com>
@Garrybest
Copy link
Member Author

That's right... The decimal could be negative when scale down, so retrieving abs of decimal is correct.

Copy link
Member

@dixudx dixudx left a comment

Choose a reason for hiding this comment

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

Awesome work! Thanks.

@dixudx dixudx merged commit 8a0df30 into clusternet:main Nov 9, 2022
@Garrybest Garrybest deleted the pr_divide branch November 9, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unbalanced algorithm for dynamicDivideReplicas
2 participants