[pve-devel] [PATCH ha-manager v2 7/8] manager: make online node usage computation granular

Fiona Ebner f.ebner at proxmox.com
Tue Oct 21 15:09:53 CEST 2025


Am 20.10.25 um 6:46 PM schrieb Daniel Kral:
> The HA Manager builds $online_node_usage in every FSM iteration in
> manage(...) and at every HA resource state change in
> change_service_state(...). This becomes quite costly with a high HA
> resource count and a lot of state changes happening at once, e.g.
> starting up multiple nodes with rebalance_on_request_start set or a
> failover of a node with many configured HA resources.
> 
> To improve this situation, make the changes to the $online_node_usage
> more granular by building $online_node_usage only once per call to
> manage(...) and changing the nodes a HA resource uses individually on
> every HA resource state transition. This allows the HA Manager to handle
> many more HA resources with the static load scheduler.
> 
> Signed-off-by: Daniel Kral <d.kral at proxmox.com>

Reviewed-by: Fiona Ebner <f.ebner at proxmox.com>




More information about the pve-devel mailing list