Hi Michael,

Unfortunatelly you can't do this with haproxy right now.

Baptiste
Le 11 sept. 2013 02:59, "Michael Lasevich" <[email protected]> a écrit :

> Perhaps the best way to ask this question is to show what I am trying to
> accomplish. I got two backends with two frontends (config greatly
> over-simplified):
>
> backend BE_1
>     server     server1 1.2.3.1 maxconn 2
>     server     server2 1.2.3.2 maxconn 2
>
> backend BE_2
>     server     server3 1.2.3.3 maxconn 2
>     server     server4 1.2.3.4 maxconn 2
>
> frontend FE_1
>     default_backend BE_1
>
> frontend FE_2
>     default_backend BE_2
>
> So far so good, but now I need to add another frontend that balances
> between all 4 servers, something like:
>
> frontend FE_1
>     default_backend BE_1
>     default_backend BE_2
>
> But this only sends stuff to BE_2, I can create a new backend BE_3 which
> contains all 4 servers, but this has a huge drawback that my "maxconn"
> settings are no longer respected as it is used in two places, doubling
> the total max. I can reduce maxconn, but then I get bottlenecks whenever
> load is not perfectly balanced.
>
> What is the right way to configure this?
>
> Thanks in advance!
>
> -M
>
> (In case you are wondering why this config, each server in each backend
> serves two separate but related requests (a common one, and a backend
> specific one) - I need to balance the request to specific backends AND
> requests for common info shared but both pools.)
>
>
>

Reply via email to