I’ve been using haproxy sticky sessions in front of a stateful application for some time now. Are these header based routing rules preserved if we restart/reload the service? How could we achieve this?
Thanks in advance!
I’ve been using haproxy sticky sessions in front of a stateful application for some time now. Are these header based routing rules preserved if we restart/reload the service? How could we achieve this?
Thanks in advance!
Sticky sessions as in the you are using a stateful stick-table?
Then no, you’d have to configure it. You can do that be configuring peer replication for stick tables; even you don’t have multiple haproxy instances. You specify a peer where peername is a local peer name, so the haproxy instance that is about to start connects to the old process and downloads the content of the stick table:
https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#3.5-peer