I have 8 hypervisor hosts, and there are some ones have the negative free_ram_mb
value because of the wrong migrate
operate or scheduler
configure.
My situation:
+---------------------+---------------++---------------------+---------------+| Field | Value | | Field | Value |+---------------------+---------------++---------------------+---------------+| free_ram_mb | 116786 | | free_ram_mb | -88014 || host_ip | 10.**.***.31 | | host_ip | 10.**.***.34 || hypervisor_hostname | os-clst-hc-31 | | hypervisor_hostname | os-clst-hc-34 || running_vms | 36 | | running_vms | 63 |+---------------------+---------------++---------------------+---------------++---------------------+---------------++---------------------+---------------+| Field | Value | | Field | Value |+---------------------+---------------++---------------------+---------------+| free_ram_mb | 105522 | | free_ram_mb | -114638 || host_ip | 10.**.***.30 | | host_ip | 10.**.***.33 || hypervisor_hostname | os-clst-hc-30 | | hypervisor_hostname | os-clst-hc-33 || running_vms | 46 | | running_vms | 35 |+---------------------+---------------++---------------------+---------------++---------------------+---------------++---------------------+---------------+| Field | Value | | Field | Value |+---------------------+---------------++---------------------+---------------+| free_ram_mb | -137158 | | free_ram_mb | 140338 || host_ip | 10.**.***.36 | | host_ip | 10.**.***.35 || hypervisor_hostname | os-clst-hc-36 | | hypervisor_hostname | os-clst-hc-35 || running_vms | 22 | | running_vms | 53 |+---------------------+---------------++---------------------+---------------++---------------------+---------------++---------------------+---------------+| Field | Value | | Field | Value |+---------------------+---------------++---------------------+---------------+| free_ram_mb | 73625 | | free_ram_mb | 80946 || host_ip | 10.**.***.37 | | host_ip | 10.**.***.32 || hypervisor_hostname | os-clst-hc-37 | | hypervisor_hostname | os-clst-hc-32 || running_vms | 10 | | running_vms | 53 |+---------------------+---------------++---------------------+---------------+
How could I let openstack
balance the vms automatically and make the all free_ram_mb
has a positive value?
I know it could solve by live-migrate
the vms manually, but it's a heavy work.
Is there any component or configure for resolving this?