]> git.proxmox.com Git - pve-ha-manager.git/commit
resources: add get_static_stats() method
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 17 Nov 2022 14:00:03 +0000 (15:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Nov 2022 12:25:21 +0000 (13:25 +0100)
commiteea0c609239bc6052328f9f32a4430b122720871
treeef5f76e3c210b94bb9f24136d7a86521a346f71a
parent5db695c3f3c9890642904c62b78bd7df473c8796
resources: add get_static_stats() method

to be used for static resource scheduling.

In container's vmstatus(), the 'cores' option takes precedence over
the 'cpulimit' one, but it felt more accurate to prefer 'cpulimit'
here.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/HA/Resources.pm
src/PVE/HA/Resources/PVECT.pm
src/PVE/HA/Resources/PVEVM.pm
src/PVE/HA/Sim/Hardware.pm
src/PVE/HA/Sim/Resources.pm