HAProxy Enterprise Documentation 1.6r2
Peers
The peers
section enables the replication of stick table data between two or more HAProxy Enterprise instances.
peers mycluster
# peers list
This feature works well for one-way replication of data because when the data replicates to the peer, it overwrites existing data on that peer. This makes it ideal for an active-standby cluster where the active instance pushes data to the standby instance.
In an active-active cluster where both instances receive traffic, use the Stick Table Aggregator module to combine the data captured by all nodes in the cluster.
Persist data at reload
A useful side effect of using a peers
section is that HAProxy Enterprise will persist stick table data after a reload. This is because during a reload the old process connects to the new one and shares all of its stick table entries with it.
To use this feature only, you can define a peers
section with only the local host address:
peers mycluster
peer local 127.0.0.1:10000
Without this, stick table data is lost during a reload.
Next up
Dynamic-update