I have 2 HA Proxy servers with Keepalived configured with them, and have 2 backend servers to which traffic is routed by HA Proxy, am writing a shell script that will sync a directory between backend servers based on which server is currently set as active using osync. (HA is configured as Active-Passive, switches to available server when current one goes down). The problem is I cannot find any resource or way that could programmatically tell me which server is currently actively accepting traffic.
Asked
Active
Viewed 25 times