Re: [PATCH ha-manager v4 21/28] test: add dynamic automatic rebalancing system test cases

Dominik Rusovac
2026-04-02T13:21:42Z

lgtm, consider this

On Thu Apr 2, 2026 at 2:44 PM CEST, Daniel Kral wrote:
> These test cases document the basic behavior of the automatic load
> rebalancer using the dynamic usage stats.
>
> As an overview:
>
> - Case 0: rebalancing system is inactive for no configured HA resources
> - Case 1: rebalancing system doesn't trigger any rebalancing migrations
> for a single, configured HA resource
> - Case 2: rebalancing system triggers migrations if the running HA
> resources cause a significant node imbalance and converge if
> the imbalance falls below the threshold
> - Case 3: rebalancing system triggers migrations if the running HA
> resources cause a significant node imbalance through dynamic
> changes in their usage
> - Case 4: rebalancing system doesn't trigger a migration if the node
> imbalance is exceeded once but isn't sustained for at least
> the set hold duration
>
> Signed-off-by: Daniel Kral <d.kral@proxmox.com>
> ---
> changes v3 -> v4:
> - case 3 was changed to have an initial imbalance below 0.3 instead of
> an imbalance below 0.7 as before
> - case 4 was changed to have an imbalance below 0.3 instead of below 0.7
> to not trigger a rebalancing migration inbetween the transient spike
>

[snip]