HAProxy – Configure timeouts based on ACL

haproxytimeout

I am using HaProxy for load balancing. I have multiple backeds, which are routed based on URLs.

In my haproxy.cfg file, I have setup the default

timeout client         1m

But, I want this value based on the ACL.i.e. for different ACL different values of timeout client.

I checked on the documentation and few blogs, but didn't find a way to achieve this.

Reference : http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#timeout%20server

Best Answer

This is not possible / supported. The client timeout value is set per frontend, not per request.