mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Extra options pandora_ha auto-resync
This commit is contained in:
parent
e9c5d89fdc
commit
5b8a391f99
@ -711,3 +711,11 @@ alertserver_warn 180
|
|||||||
# IMPORTANT! Please understand and configure all settings from pandora_console/index.php?sec=gservers&sec2=enterprise/godmode/servers/HA_cluster&tab=setup
|
# IMPORTANT! Please understand and configure all settings from pandora_console/index.php?sec=gservers&sec2=enterprise/godmode/servers/HA_cluster&tab=setup
|
||||||
# before enable this feature.
|
# before enable this feature.
|
||||||
#splitbrain_autofix 0
|
#splitbrain_autofix 0
|
||||||
|
|
||||||
|
# Pandora FMS HA MySQL cluster splitbrain auto-recovery settings (PANDORA FMS ENTERPRISE ONLY)
|
||||||
|
# Maximum number of retries
|
||||||
|
#ha_max_splitbrain_retries 2
|
||||||
|
# Maximum number of retries to verify resync status.
|
||||||
|
#ha_max_resync_wait_retries 3
|
||||||
|
# Maximum number of seconds waiting while verifying resync status.
|
||||||
|
#ha_resync_sleep 10
|
||||||
|
@ -1293,6 +1293,15 @@ sub pandora_load_config {
|
|||||||
elsif ($parametro =~ m/^splitbrain_autofix\s(.*)/i) {
|
elsif ($parametro =~ m/^splitbrain_autofix\s(.*)/i) {
|
||||||
$pa_config->{'splitbrain_autofix'} = clean_blank($1);
|
$pa_config->{'splitbrain_autofix'} = clean_blank($1);
|
||||||
}
|
}
|
||||||
|
elsif ($parametro =~ m/^ha_max_resync_wait_retries\s(.*)/i) {
|
||||||
|
$pa_config->{'ha_max_resync_wait_retries'} = clean_blank($1);
|
||||||
|
}
|
||||||
|
elsif ($parametro =~ m/^ha_resync_sleep\s(.*)/i) {
|
||||||
|
$pa_config->{'ha_resync_sleep'} = clean_blank($1);
|
||||||
|
}
|
||||||
|
elsif ($parametro =~ m/^ha_max_splitbrain_retries\s(.*)/i) {
|
||||||
|
$pa_config->{'ha_max_splitbrain_retries'} = clean_blank($1);
|
||||||
|
}
|
||||||
|
|
||||||
} # end of loop for parameter #
|
} # end of loop for parameter #
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user