I am attempting to limit the number of connections on a per host header
basis. Currently each host header has it's own ACL and backend. This
allows me to use maxconns and limit the number of connections per host
header even if the physical server is the same in both backends.
###
frontend http_proxy
bind :8080
acl test1 hdr(host) test1.localhost:8080
acl test2 hdr(host) test2.localhost:8080
use_backend test1 if test1
use_backend test1 if test1
backend test1
server test localhost:5984 maxconn 1000
backend test2
server test localhost:5984 maxconn 1000
###
What I am wanting to do is use a single backend and decide the
connections per host header in the frontend. I took a look at dst_conn
and connslots and I don't think they will work for this as I am using a
single frontend (dst_conn) and attempting to use a single backend
(connslots). The idea would be "if HOSTHEADER has less than 1000
connections forward to SOMEBACKEND".
Is something like this possible?
Thanks.
-Joe
--
Name: Joseph A. Williams
Email: [email protected]
Blog: http://www.joeandmotorboat.com/