Update haproxy.config
This commit is contained in:
@@ -43,7 +43,7 @@ listen admin_page
|
|||||||
stats http-request auth realm admin_page unless AuthOkay_ReadOnly
|
stats http-request auth realm admin_page unless AuthOkay_ReadOnly
|
||||||
# stats admin if AuthOkay_Admin
|
# stats admin if AuthOkay_Admin
|
||||||
|
|
||||||
listen haproxy_MySQL_3307_rw
|
listen MySQL_3307_rw
|
||||||
bind *:3307
|
bind *:3307
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 10800s
|
timeout client 10800s
|
||||||
@@ -58,7 +58,7 @@ listen haproxy_MySQL_3307_rw
|
|||||||
server 10.5.10.53 10.5.10.53:3306 check backup
|
server 10.5.10.53 10.5.10.53:3306 check backup
|
||||||
|
|
||||||
|
|
||||||
listen haproxy_MySQL_3308_ro
|
listen MySQL_3308_ro
|
||||||
bind *:3308
|
bind *:3308
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 10800s
|
timeout client 10800s
|
||||||
@@ -72,44 +72,51 @@ listen haproxy_MySQL_3308_ro
|
|||||||
server 10.5.10.52 10.5.10.52:3306 check
|
server 10.5.10.52 10.5.10.52:3306 check
|
||||||
server 10.5.10.53 10.5.10.53:3306 check backup
|
server 10.5.10.53 10.5.10.53:3306 check backup
|
||||||
|
|
||||||
listen haproxy__NGINX_http
|
listen NGINX_HTTP
|
||||||
bind *:80
|
bind *:80 transparent
|
||||||
mode tcp
|
mode http
|
||||||
timeout client 10800s
|
balance leastconn
|
||||||
timeout server 10800s
|
cookie SERVERID maxidle 30m maxlife 12h insert nocache indirect
|
||||||
# tcp-check expect string is\ running
|
# server backup 127.0.0.1:9081 backup non-stick
|
||||||
balance leastconn
|
option http-keep-alive
|
||||||
option tcp-check
|
timeout http-request 5s
|
||||||
# option allbackups
|
option forwardfor
|
||||||
default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100
|
timeout tunnel 1h
|
||||||
cookie SERVERUSED insert indirect nocache
|
option redispatch
|
||||||
server 10.5.10.120 10.5.10.120:80 cookie s1 check
|
option abortonclose
|
||||||
server 10.5.10.121 10.5.10.121:80 cookie s2 check
|
maxconn 40000
|
||||||
|
server iDS-Webserver1 10.5.10.120:80 weight 250 cookie iDS-Webserver1 check port 80 inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
|
||||||
|
server iDS-Webserver2 10.5.10.121:80 weight 100 cookie iDS-Webserver2 check port 80 inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
|
||||||
|
|
||||||
listen haproxy__NGINX_https
|
listen NGINX_SSL
|
||||||
bind *:443
|
bind *:443 transparent
|
||||||
mode tcp
|
mode http
|
||||||
timeout client 10800s
|
balance leastconn
|
||||||
timeout server 10800s
|
cookie SERVERID maxidle 30m maxlife 12h insert nocache indirect
|
||||||
# tcp-check expect string is\ running
|
# server backup 127.0.0.1:9081 backup non-stick
|
||||||
balance leastconn
|
option http-keep-alive
|
||||||
option tcp-check
|
timeout http-request 5s
|
||||||
# option allbackups
|
option forwardfor
|
||||||
default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100
|
timeout tunnel 1h
|
||||||
cookie SERVERUSED insert indirect nocache
|
option redispatch
|
||||||
server 10.5.10.120 10.5.10.120:443 cookie s1 check
|
option abortonclose
|
||||||
server 10.5.10.121 10.5.10.121:443 cookie s2 check
|
maxconn 40000
|
||||||
|
server iDS-Webserver1-SSL 10.5.10.120:443 weight 250 cookie iDS-Webserver1-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
|
||||||
|
server iDS-Webserver2-SSL 10.5.10.121:443 weight 100 cookie iDS-Webserver2-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
|
||||||
|
|
||||||
listen haproxy__Gitea_http
|
listen Gitea
|
||||||
bind *:3000
|
bind *:3000
|
||||||
mode tcp
|
mode http
|
||||||
timeout client 10800s
|
balance leastconn
|
||||||
timeout server 10800s
|
cookie SERVERID maxidle 30m maxlife 12h insert nocache indirect
|
||||||
# tcp-check expect string is\ running
|
# server backup 127.0.0.1:9081 backup non-stick
|
||||||
balance leastconn
|
option http-keep-alive
|
||||||
option tcp-check
|
timeout http-request 5s
|
||||||
# option allbackups
|
option forwardfor
|
||||||
default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100
|
timeout tunnel 1h
|
||||||
cookie SERVERUSED insert indirect nocache
|
option redispatch
|
||||||
server 10.5.10.120 10.5.10.120:3000 cookie s1 check
|
option abortonclose
|
||||||
server 10.5.10.121 10.5.10.121:3000 cookie s2 check backup
|
maxconn 40000
|
||||||
|
server iDS-Webserver1-SSL 10.5.10.120:443 weight 250 cookie iDS-Webserver1-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions
|
||||||
|
server iDS-Webserver2-SSL 10.5.10.121:443 weight 100 cookie iDS-Webserver2-SSL check inter 4000 rise 2 fall 2 slowstart 8000 minconn 0 maxconn 0 on-marked-down shutdown-sessions backup
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user