summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/high-availability.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conf_mode/high-availability.py b/src/conf_mode/high-availability.py
index 48a7d8abc..175929547 100755
--- a/src/conf_mode/high-availability.py
+++ b/src/conf_mode/high-availability.py
@@ -188,6 +188,15 @@ def _validate_health_check(group, group_config):
# to avoid generating useless config statements in keepalived.conf
del group_config["health_check"]
+ if 'timeout' in group_config.get('health_check', {}):
+ interval = int(group_config['health_check']['interval'])
+ timeout = int(group_config['health_check']['timeout'])
+ if timeout < interval:
+ Warning(
+ f'Health check timeout ({timeout}s) is less than interval ({interval}s) '
+ f'for VRRP group "{group}", script may be killed before completion'
+ )
+
def generate(ha):
if not ha or 'disable' in ha: