[pve-devel] [PATCH ha-manager 08/11] manager: set resource scheduler mode upon init
Fiona Ebner
f.ebner at proxmox.com
Thu Nov 10 15:37:56 CET 2022
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
src/PVE/HA/Manager.pm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/PVE/HA/Manager.pm b/src/PVE/HA/Manager.pm
index 63e6c8a..20b743c 100644
--- a/src/PVE/HA/Manager.pm
+++ b/src/PVE/HA/Manager.pm
@@ -52,6 +52,11 @@ sub new {
$self->{ms} = { master_node => $haenv->nodename() };
+ my $crs_settings = $haenv->get_crs_settings();
+ $self->{'scheduler-mode'} = $crs_settings ? $crs_settings->{ha} : 'basic';
+ $haenv->log('info', "using scheduler mode '$self->{'scheduler-mode'}'")
+ if $self->{'scheduler-mode'} ne 'basic';
+
return $self;
}
--
2.30.2
More information about the pve-devel
mailing list