Check for docker service in cicd_control_vip
Change-Id: I406e57bd13d7881c4bab8b93f8e7daee7e8f6bac
Related-Bug: PROD-17680
diff --git a/keepalived/cluster/instance/cicd_control_vip.yml b/keepalived/cluster/instance/cicd_control_vip.yml
index cde6af2..462cbd6 100644
--- a/keepalived/cluster/instance/cicd_control_vip.yml
+++ b/keepalived/cluster/instance/cicd_control_vip.yml
@@ -6,9 +6,9 @@
keepalived:
cluster:
vrrp_scripts:
- check_pidof:
- args: "haproxy"
- interval: 10
+ vip:
+ content: "pidof haproxy && docker service ls"
+ interval: 30
rise: 1
fall: 1
enabled: true
@@ -19,4 +19,4 @@
interface: ${_param:keepalived_vip_interface}
virtual_router_id: ${_param:keepalived_vip_virtual_router_id}
priority: ${_param:keepalived_vip_priority}
- track_script: check_pidof
+ track_script: vip