Hi,
Currently if we migrateall vm from 1 node to another node,
we don't check available memory on target node, and we can reach 100% memory
usage is target host don't have enough ram.
(also, if target host have same physical memory, if ksm is used on source node,
you'll get 100% memory on target
> How is it possible to get stats of targetnode, from sourcenode ? (cluster
> resources api ?)
# pvesh get /cluster/resources --type node
[
{
"cpu" : 0.00540930640914729,
"disk" : 150681653248,
"id" : "node/anode",
"level" : "",
"maxcpu" : 8,
"maxdisk" : 1957
Il 12 gen 2018 4:40 PM, "Alexandre DERUMIER" ha
scritto:
I would like to add an option to qm migrate, like "targethost_freememory_
percent",
and before doing the live migration, do
die "not enough free memory on target host" if "(targethost_current_memory
+ vm_current_memory) / targethost)*100)