gyptazy / ProxLB

ProxLB - (Re)Balance VM Workloads Across Nodes in Proxmox Clusters. A Load Balancer for Proxmox - and more!
https://proxlb.de
GNU General Public License v3.0
221 stars 10 forks source link

Find best new node for placement for new virtual machines! #24

Closed Paul2000DE closed 2 months ago

Paul2000DE commented 4 months ago

Hello,

I just found this in the Proxmox Matrix channel and works good. But is there also any possibility to get somehow the best node before creating a virtual machine somewhere, so it does not make any rebalance afterwards but before. This would be a good benefit to have.

Thank you!

gyptazy commented 4 months ago

Hey @Paul2000DE,

thanks for your feature request and I think this is a great idea!

This (#8) is already on our roadmap for Release 1.1.0. The current idea is to implement an own API interface where you can request this by an http interface. You can find the first ideas in #21. Maybe it might also make sense to have this implemented for cli output. However, I'd like to keep the cli option as slim as possible. Therefore, I really like the API approach.

What do yo think about this? Would this fit you needs?

Cheers, gyptazy

gyptazy commented 2 months ago

Hey @Paul2000DE,

this feature is now available in the head (by merging PR #54) of this project and will be part of release 1.0.3. You can already use this and the details are written in https://github.com/gyptazy/ProxLB/issues/8#issuecomment-2297267127. You can find more details about it in the README.md file.

Hope it helps!

Cheers, gyptazy