Hi Baptiste your comment about "peer" was interesting. I am wondering if it can be used in conjunction with a SLB in Amazon. Here is what I am thinking.
Amazon SLB/ELB is setup in pass thru the send the requests as is to backend HAProxies. HAProxyies peer using internal IP or assigned static IP If a proxy receives a request for which session is on the other server, it forwards the request back to main IP of the SLB/ELB.
Is that doable? I am going to read up on "peer" option once I am back home. But if the above can be done, lots of headache in making HAprxoy itself HA goes away.
Thanks
Mir
On Dec 14, 2011, at 8:24 AM, Baptiste wrote:
> Hi Erik, > > Forget about appsession, it's weak :) > > Use haproxy 1.5-dev7 and stick tables. In your backend, just add the > few line below: > stick-table type string len 32 size 10K > stick store-response set-cookie(PHPSESSID) > stick on url_param(session_id) > > I recommand using with "peer" keyword to get multiple haproxy to sync > their tables. > So in case of reload of haproxy or in case of lb failure, you could > keep on redirecting users to the same backend. > > cheers > > > > On Wed, Dec 14, 2011 at 1:11 PM, Erik Torlen > <erik.torlen#apicasystem.com> wrote:
This archive was generated by hypermail 2.2.0 : 2011/12/14 20:30 CET