]> git.proxmox.com Git - pve-ha-manager.git/commit
add Usage base plugin and Usage::Basic plugin
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 17 Nov 2022 14:00:04 +0000 (15:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Nov 2022 12:25:21 +0000 (13:25 +0100)
commitc8c6e462fc67447014e6f3542beba72a2157fd14
treefdbe4fe0b89ea3a8c373758de5ff78da59f5c2fc
parenteea0c609239bc6052328f9f32a4430b122720871
add Usage base plugin and Usage::Basic plugin

in preparation to also support static resource scheduling via another
such Usage plugin.

The interface is designed in anticipation of the Usage::Static plugin,
the Usage::Basic plugin doesn't require all parameters.

In Usage::Static, the $haenv will necessary for logging and getting
the static node stats. add_service_usage_to_node() and
score_nodes_to_start_service() take the sid, service node and the
former also the optional migration target (during a migration it's not
clear whether the config file has already been moved or not) to be
able to get the static service stats.

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