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

feature: Add new mode_option to rebalance by node's bytes or percent. #34

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

gyptazy
Copy link
Owner

@gyptazy gyptazy commented Jul 29, 2024

feature: Add new mode_option to rebalance by node's bytes or percent.

General

This adds the requested (by @ewenlau) option to to rebalance by the node's free resources in percent instead of bytes. The operation mode for this can be changed by the newly introduced option mode_option which is by default bytes.

A user can define this by setting bytes or percent.

This PR also adds a function to validate if there are objects of type VM or CT to rebalance to avoid raising a stack trace when no objects are present in a cluster (e.g. freshly installed cluster).

Fixes: #29

@gyptazy gyptazy added this to the Release 1.0.0 milestone Jul 29, 2024
@gyptazy gyptazy self-assigned this Jul 29, 2024
@gyptazy gyptazy force-pushed the feature/29-rebalance-by-free-node-memory-in-percent branch from c2f3651 to 46832ba Compare July 30, 2024 05:41
@gyptazy gyptazy merged commit 86fe248 into main Jul 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProxLB doesn't think the containers need to be moved
1 participant