]> git.proxmox.com Git - pve-ha-manager.git/commit
manager: use static resource scheduler when configured
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 17 Nov 2022 14:00:11 +0000 (15:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Nov 2022 12:25:21 +0000 (13:25 +0100)
commit561e7f4bfb235fcdca5b0bbb8422ce742a5da75f
tree71bfab5ca8e7a92520078c005fa7a346c25faf7b
parentf74f8ffb244fe6860520257b3b6b699666f72320
manager: use static resource scheduler when configured

Note that recompute_online_node_usage() becomes much slower when the
'static' resource scheduler mode is used. Tested it with ~300 HA
services (minimal containers) running on my virtual test cluster.

Timings with 'basic' mode were between 0.0004 - 0.001 seconds
Timings with 'static' mode were between 0.007 - 0.012 seconds

Combined with the fact that recompute_online_node_usage() is currently
called very often this can lead to a lot of delay during recovery
situations with hundreds of services and low thousands of services
overall and with genereous estimates even run into the watchdog timer.

Ideas to remedy this is using PVE::Cluster's
get_guest_config_properties() instead of load_config() and/or
optimizing how often recompute_online_node_usage() is called.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/HA/Manager.pm