]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
lrm: increase run_worker loop-time parition
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Jan 2022 15:09:37 +0000 (16:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Jan 2022 15:17:28 +0000 (16:17 +0100)
every LRM round is scheduled to run for 10s but we spend only half
of that to actively trying to run workers (in the max_worker limit).

Raise that to 80% duty cycle.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/LRM.pm

index f4c3e7671ea481b433c599b83b54c9c61d0b8858..7e635e67a17d2ca9e6303c91c467e260a27372aa 100644 (file)
@@ -561,7 +561,7 @@ sub run_workers {
        $worker->{$b}->{start_tries} <=> $worker->{$a}->{start_tries} || $a cmp $b
     };
 
-    while (($haenv->get_time() - $starttime) < 5) {
+    while (($haenv->get_time() - $starttime) <= 8) {
        my $count = $self->check_active_workers();
 
        for my $sid (sort $fair_sorter grep { !$worker->{$_}->{pid} } keys %$worker) {