Hi Phil,

You have 2 options:
1. define active and backup servers in the same backend and use the
option allbackups to use all backup servers in the mean time
2. define an active backend and a backup backend, then use the acl
nb_srv to count the number of servers in the active backend and
decided to switch the traffic to the other backend one a threshlod has
been reached.

Baptiste


On Tue, Sep 3, 2013 at 10:49 AM, Phil Daws <[email protected]> wrote:
> Hello,
>
> I have a configuration where I am proxying front-end connections to a 
> back-end service:
>
> frontend security-frontend
>    bind 192.168.1.10:3307
>    maxconn      2000
>    default_backend security-backend
>
> backend security-backend
>   mode tcp
>   balance roundrobin
>   option httpchk
>   server sec1 192.168.2.10:3307 check port 10000
>
> but now I would like to add a backup to the security-backend.  Is the only 
> option to have something like:
>
> server sec2 X.X.X.X backup
>
> or is it possible to use another back-end group that has already been defined 
> eg.
>
> backend mysql-backend
>   mode tcp
>   balance roundrobin
>   option httpchk
>   server mysq1 192.168.2.20:3307 check port 10000
>   server mysq1 192.168.2.21:3307 check port 10000
>   server mysq1 192.168.2.22:3307 check port 10000
>
> Thanks.
>

Reply via email to