Monitor docker service istead of haproxy by keepalived on mon nodes
We don't have haproxy on mon nodes so we don't need to use
vrrp_scripts to monitor haproxy from keepalived side.
Load balancer on mon nodes is docker swarm - let's monitor it.
Fixes_bug: PROD-18155
Change-Id: I5f9c51a95ae3cbdb98e5dd9c61492ac887814b3a
diff --git a/keepalived/cluster/instance/stacklight_monitor_vip.yml b/keepalived/cluster/instance/stacklight_monitor_vip.yml
index e146f20..51283b2 100644
--- a/keepalived/cluster/instance/stacklight_monitor_vip.yml
+++ b/keepalived/cluster/instance/stacklight_monitor_vip.yml
@@ -3,11 +3,13 @@
classes:
- service.keepalived.support
parameters:
+ _param:
+ keepalived_docker_vrrp_script_content: "docker service ls"
keepalived:
cluster:
vrrp_scripts:
- check_pidof:
- args: "haproxy"
+ docker_service_ls:
+ content: ${_param:keepalived_docker_vrrp_script_content}
interval: 10
rise: 1
fall: 1
@@ -19,4 +21,4 @@
interface: ${_param:keepalived_stacklight_monitor_vip_interface}
virtual_router_id: 100
priority: 101
- track_script: check_pidof
+ track_script: docker_service_ls