-
Notifications
You must be signed in to change notification settings - Fork 10
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: new VM suggestion #8
Comments
Hey @daanbosch, I can see the reason and use it already for my BoxyBSD.com project in a modified way. However, I'm not sure what the best way for this would be and I guess it also depends on the operator's use case - also if you want to recall the executable and just want to get a string returned with the hypervisor/node name or if this should be integrated into the daemon. I think I would prefer having this as a daemon where it also provides an API which can simply be called by external tools like Ansible which then returns a simple json. Happy to head some more ideas. Cheers, |
Hi gyptazy, Yes an API endpoint would be ideal in my opinion. I use Terraform to spin up vm's If we could get an HTTP API that would return the best fit for one or more virtual machines, that would be ideal. Best, |
Sounds good and an API interface would be my preferred way. But currently this is not my personal priority right, now. I think this might be a goal for 1.1 - maybe even earlier. |
Doesn't the "rebalance on start" option effectively make this moot? With the option enabled, you can create a vm on any cluster node. Once the new vm is started, Proxmox will already move it over to another node based on current resources? |
Hey @baggar11,
Thanks for mentioning this. Afaik, this option only works when:
The option is already present in 7.0 but there's a bug which might be annoying: https://forum.proxmox.com/threads/enabling-ha-rebalance-on-start-reboots-running-vm-after-adding-it-to-ha-manager.125597/ So, I think it's still ok to have it here present. Cheers, |
This function requires you to enable HA, which is not always a possibility. It also balances based on the current load. This tool has advanced features to choose the way you balance (Based on reserved or actual usage). Best, |
This feature will already be present this evening or tomorrow by pushing the new base for upcoming features. You can then simply call it with I’ll provide the updated docs with the feature. cheers, |
Hey everyone! This feature is now available and can simply be used by running proxlb with the cli arg Example:
Of course, you can also use different config to get the best next node for specific balancing methods. This could look like:
This feature will also be available in the ProxLB API. See also https://github.com/gyptazy/ProxLB?tab=readme-ov-file#parameters. Hope it helps! Cheers, |
General
I would love to know where I should place my next VM on the cluster. Would it be possible to calculate the best fit node as well?
Task
Add an endpoint for requesting the best node based on CPU/Memory/Disk/PCI device requirements
The text was updated successfully, but these errors were encountered: