Hi, this idea was proposed quite some time ago and we planned to implement it in the pve-ha-manager stack, as it provides a lot of functionality needed for that.
The general idea from our side is: * wait for the cluster to become stable (e.g. a few minutes no cluster action), * evaluate the load * see if there is a configuration which makes the load more equal, here migrate "lighter" VMs first else we may get to big system time delays which are bad for such systems and can cause instability. * if there is any such configuration try to achieve it (migrating one VM at a time). * start at the beginning. There are a few question open, e.g. how to determine load _correctly_ as there are various setups and indicators from memory, cpu, network and IO, which may have different effects on different setups. What happens in edge cases (fencing, ...) Also a static value which can be assigned to VMs would be nice, as just because a VM is lightweight Thus we want to start simple, i.e. use static load balance, then a simple dynamic on (e.g. CPU only) and at best with a simulation which can evaluate how often migration happened and so on (wishlist). And AFAIK, we want to "limit" it to HA Groups, meaning this group should be balanced over the group assigned nodes. The point of this message is to summarize our (or better my) thoughts to that topic and to notify you that there is already something planned and also that there is a Project by us which someone who wants to implement that could make use of, namely the Proxmox VE HA Manager. I appreciate the fact that you want to make something for PVE and wish you the best, it could be a though worth for you to use some of the HA manager stack using perl would help here, this way it could also land upstream. best regards, Thomas On 04/05/2016 11:04 AM, Mohamed Sadok Ben Jazia wrote: > Hi list, > For my proxmox infrastructure, i set a number of nodes of a cluster. > I'm looking for a load-balancer, to make those tasks: > -Choose the best node for a just created or resized CT/VM. > -Live migration to gain ressources on nodes, or for optimisation. > My idea is to create a dynamic resources scheduler that is integrated > to my server side script to perform this function. > > Here is the ling to the project > > https://github.com/BenJaziaSadok/proxmox-DRS > > Any help with the algorithm or in the development is welcome > > Thank you > _______________________________________________ > pve-user mailing list > pve-user@pve.proxmox.com > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user > _______________________________________________ pve-user mailing list pve-user@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user