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

Exclude VM from migration if it is the only VM on a node #26

Open
mjolnirgs opened this issue Apr 29, 2024 · 2 comments
Open

Exclude VM from migration if it is the only VM on a node #26

mjolnirgs opened this issue Apr 29, 2024 · 2 comments

Comments

@mjolnirgs
Copy link

mjolnirgs commented Apr 29, 2024

I have a large cluster of 10 nodes, that is sometimes very lightly loaded with less than 10 VMs. Then we will provision a large number of temporary VMs that require balancing. This is part of an automated provisioning system, so we are not always aware that we need to turn on the load-balancer.

Currently the script will endlessly migrate VMs from one host to another when the cluster has fewer than 1 VM per host.

We can set the memory percentage very high, but then that would defeat the purpose of the load balancer, and starting and stopping the script manually would be less than ideal. We could also manually exclude the long running VMs from migration, but then they might require migration in the future and it would be better not to have to manually manage the load-balancer like that.

In all use cases, I cannot see any value at all in the load balancer migrating a VM away from a node when it is the only VM on the node.

@cvk98
Copy link
Owner

cvk98 commented May 2, 2024

I absolutely agree with you. It was this logic that I put into my program. If this is not the case, then something did not go according to plan =)

@mjolnirgs
Copy link
Author

I can confirm it is definitely endlessly migrating a VM around the empty nodes in the cluster.

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

No branches or pull requests

2 participants