As per our design, it should be possible to take dynamic memory load into account for balancing decissions. In particular, the maintenance daemon should take it into account if memory-over-commitment is enabled. Do this, as per our design.
As discussed (offline) with Lisa Velden, it is OK for this series to still go into 2.17. Klaus Aehlig (14): Add a new option for assuming idleness Make Extloader honor optIdleDefault Make hbal support --idle-default Add tests for handling of dynamic utilisation Add an new option --mond-kvm-rss Also support the kvm RSS collector at MonD backend Make hbal support --mond-kvm-rss Add a test for memory-based balancing Support scaling of the memory weight Add an option to scale memory weight Export useInstanceRSSData In MaintD take memory load into account Make hbal support --mem-weight Add a test for --mem-weight Makefile.am | 4 ++ man/hbal.rst | 17 +++++++ src/Ganeti/HTools/Backend/MonD.hs | 80 ++++++++++++++++++++++++++++++-- src/Ganeti/HTools/CLI.hs | 36 +++++++++++++- src/Ganeti/HTools/ExtLoader.hs | 3 +- src/Ganeti/HTools/Program/Hbal.hs | 11 +++-- src/Ganeti/MaintD/Balance.hs | 41 ++++++++++++++-- test/data/htools/dyn1.json | 38 +++++++++++++++ test/data/htools/dyn2.json | 64 +++++++++++++++++++++++++ test/data/htools/dyn3.json | 64 +++++++++++++++++++++++++ test/data/htools/hbal-dyn2.data | 15 ++++++ test/hs/shelltests/htools-balancing.test | 53 +++++++++++++++++++++ 12 files changed, 415 insertions(+), 11 deletions(-) create mode 100644 test/data/htools/dyn1.json create mode 100644 test/data/htools/dyn2.json create mode 100644 test/data/htools/dyn3.json create mode 100644 test/data/htools/hbal-dyn2.data -- 2.6.0.rc2.230.g3dd15c0
