]> git.proxmox.com Git - pve-ha-manager.git/commit
usage: add Usage::Static plugin
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 17 Nov 2022 14:00:07 +0000 (15:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Nov 2022 12:25:21 +0000 (13:25 +0100)
commit48f2144b2737286ba6960eef632294f1bf15e9bb
tree793351539cadaf057782c5181bd94fb3959a5d06
parent5d724d4dd9cf70ba2a12efbcd9743cebfd9b831d
usage: add Usage::Static plugin

for calculating node usage of services based upon static CPU and
memory configuration as well as scoring the nodes with that
information to decide where to start a new or recovered service.

For getting the service stats, it's necessary to also consider the
migration target (if present), becuase the configuration file might
have already moved.

It's necessary to update the cluster filesystem upon stealing the
service to be able to always read the moved config right away when
adding the usage.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
debian/pve-ha-manager.install
src/PVE/HA/Env/PVE2.pm
src/PVE/HA/Usage.pm
src/PVE/HA/Usage/Makefile
src/PVE/HA/Usage/Static.pm [new file with mode: 0644]