So far, htools only try to make sure resource usage is balanced among the cluster, not efficient. Change the metric, to also try to keep the reserved memory small; more details can be found in the design document (patch 2).
Klaus Aehlig (10): Remove tests based on a wrong assumption Add a design document on improving allocation Add sum of relative reserved memory to the cluster metrics Document the change of the cluster metric Support computing the sum of all peers in a peer map Add a function computing optimal cluster score hbal: take all absolute score bounds relative to the N+1 lower bound hcheck: offset absolute limit by theoretical minimum Change description of -e option Document changes to hbal's -e option Makefile.am | 1 + doc/design-allocation-efficiency.rst | 59 +++++++++++++++++++++++++++++ doc/design-draft.rst | 1 + man/hbal.rst | 8 ++-- src/Ganeti/HTools/CLI.hs | 2 +- src/Ganeti/HTools/Cluster.hs | 28 ++++++++++++++ src/Ganeti/HTools/PeerMap.hs | 5 +++ src/Ganeti/HTools/Program/Hbal.hs | 14 ++++--- src/Ganeti/HTools/Program/Hcheck.hs | 2 +- test/hs/shelltests/htools-single-group.test | 11 ------ 10 files changed, 109 insertions(+), 22 deletions(-) create mode 100644 doc/design-allocation-efficiency.rst -- 2.2.0.rc0.207.ga3a616c
