[pve-devel] [RFC ha-manager v2] add migrate shutdown policy with an maintenance mode POC

2019-10-05 Thread Thomas Lamprecht
This adds handling for a new shutdown policy, namely "migrate". If that is set then the LRM doesn't queues stop jobs, but transitions to a new mode, namely 'maintenance'. The LRM modes now get passed from the CRM in the NodeStatus update method, this allows to detect such a mode and make node-stat

[pve-devel] [PATCH pve-manager] POC: migrate_all: add auto best target selection

2019-10-05 Thread Alexandre Derumier
This is a POC, trying to implement basic loadbalancing with best fist algorithm using dotproduct heuristic some docs about dotproduct heuristic: https://www.thinkmind.org/download.php?articleid=icn_2014_11_10_30065 https://hal.archives-ouvertes.fr/hal-00868016v2/document The main idea is to order