Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

HAProxy dual config for contingency

$
0
0

@etenburn wrote:

On DDC_HA_PROXY_SERVER I want to have ddcnode1 and ddcnode2 in a roundrobin while having ftwnode1 as a backup. ONLY If ddcnode1 and ddcnode2 are down, then traffic will forward to ftwnode1.

On FTW_HA_PROXY_SERVER I want ftwnode1 to be the primary, with traffic forwarding to ddcnode1 and ddcnode2 (roundrobin), ONLY if ftwnode1 goes down.

DDC_HA_PROXY_SERVER

listen stats

*bind :9999

stats enable

stats hide-version

stats uri /stats

stats auth admin:admin

frontend webserver

*bind :80

default_backend appserver

backend appserver

balance uri

hash-type consistent

server ddcnode1 172.16.5.30:80 check observe layer7 maxconn 5000 id 1 weight 75

server ddcnode2 172.16.5.31:80 check observe layer7 maxconn 5000 id 2 weight 75

server ftwnode1 10.2.3.200:80 check observe layer7 maxconn 5000 id 3 weight 25

________________________________________________________________________________

FTW_HA_PROXY_SERVER

listen stats

*bind :9999

stats enable

stats hide-version

stats uri /stats

stats auth admin:admin

frontend webserver

*bind :80

default_backend appserver

backend appserver

balance uri

hash-type consistent

server ftwnode1 10.2.3.200:80 check observe layer7 maxconn 5000 id 3 weight 100

server ddcnode1 172.16.5.30:80 check observe layer7 maxconn 5000 id 1 weight 25

server ddcnode2 172.16.5.31:80 check observe layer7 maxconn 5000 id 2 weight 25

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles