Welcome! Log In Create A New Profile

Advanced

reuse backend connections

Posted by Leela Kalidindi (lkalidin) 
Leela Kalidindi (lkalidin)
reuse backend connections
June 29, 2018 06:30AM
Hi,

How can I enforce haproxy to reuse limited backend connections regardless of number of client connections? Basically I do not want to recreate backend connection for every front end client.

"HAPROXY_0_BACKEND_HEAD": "\nbackend {backend}\n balance {balance}\n mode http\n option httplog\n option forwardfor\n option http-keep-alive\n option persist\n http-reuse aggressive\n maxconn 16\n",
"HAPROXY_0_FRONTEND_HEAD": "\nfrontend {backend}\n bind {bindAddr}:{servicePort}\n mode http\n option httplog\n option forwardfor\n option http-keep-alive\n maxconn 16\n"

I currently configured the above options, but still backend connections are closed after the original client requests is processed.

Please kindly treat this as urgent. Thanks in advance!


-Leela
Sorry, only registered users may post in this forum.

Click here to login