Newer haproxy sample config file

18 views
Skip to first unread message

Jim S

unread,
Apr 12, 2018, 10:37:49 AM4/12/18
to web2py-users
The sample config file for haproxy in the web2py book is for haproxy prior to version 1.6.  From what I can see, the appsession keyword is no longer valid.

My goal is to have roundrobin load balancing and sticky sessions.

I found an example online that says the following will do it.

...snip...
balance roundrobin
cookie SRVNAME insert
server server
-name 10.10.10.10:5011 cookie S1 check
server server
-name2 10.10.10.11:5011 cookie S2 check
...snip...

Anyone have a sample haproxy.cfg file for haproxy v 1.6 or newer?

-Jim
Reply all
Reply to author
Forward
0 new messages