HAProxy community

Session persistence during failover to passive node in HA Proxy


We have configured HA Proxy to act as a Highly Available load balancer for our application (PIM).

This application is used for accessing remote servers via either mstsc or putty from a common interface.

We need to know how to ensure that sessions are not disrupted if one of the nodes in the HA proxy setup goes down.

Can someone let us know how to ensure that the session remains active if one of the HA proxy nodes
is down?


When the active Haproxy node goes down, the TCP sessions will die with it. The only thing you can sync between 2 haproxy instances are stick-tables for session persistence, but that doesn’t mean the TCP sessions remains up (it just uses to the same backend server when it reconnects).