[pve-devel] adding a vm workload scheduler feature
t.lamprecht at proxmox.com
Tue Nov 17 09:39:41 CET 2015
Il 17 novembre 2015 08:40:19 CET, Dietmar Maurer <dietmar at proxmox.com> ha scritto:
>> What do you think about it ?
>> As we don't have master node, I don't known how to implement this:
>> 1) each node try to migrate his own vms to another node with less cpu
>> maybe with a global cluster lock to not have 2 nodes migrating in
>> at the same time ?
>I assume it is hard to get this stable (just a feeling). On the other
>would be simple
>to implement. Each node is responsible to move its own VMs, so you do
>need a lock.
A lock maybe should be there to only let one rebalancing action happen at any time to avoid out of control feedback loops.
>> 2) have some kind of master service in the cluster (maybe with
>> service ?),
>> which read global stats of all nodes, and through an algorithm, do
>> Don't known which way is better ?
>My plan was to integrate this into the HA manager, but then you only
>for HA enabled VMs.
That could still be done, adding a new service which uses the HA Environment class. With a lock and a status/command file a master wouldn't be necessarly needed.
>But the CRM code shows how to use a cluster wide lock to implement a
>pve-devel mailing list
>pve-devel at pve.proxmox.com
More information about the pve-devel