ha-proxy and keepalived
I have somequestions,
Does HA-Proxy forward the request to every host which have hosted the same service (lets say Swift) ? Otherwise some nodes (hosting same service) would be lagging behind i.e. each node might not be able to maintain the right state, isn't it ?
How does the keepalived works, I assume that in a cluster of three nodes lets say hosting Glance, only one node will be active and respond to the request, so how do the other two nodes get synced ?
The state is in a database, which should also be deployed as highly-available (usually a Galera cluster). Thus, the state has nothing to do with HA-Proxy.
Typical setup: HA-Proxy is deployed to all controllers, but only one of them is active. Keepalived detects that the controller with the active HA-Proxy is down and moves the Virtual IP to one of the other controllers, thereby activating the HA-Proxy running there.