From 7b38629e179998955c8be289b7d7efd397c272a2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Sep 2019 12:51:03 -0500 Subject: [PATCH] Update haproxy.config --- templates/haproxy.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/haproxy.config b/templates/haproxy.config index d56d4d5d..dba5647d 100755 --- a/templates/haproxy.config +++ b/templates/haproxy.config @@ -116,3 +116,17 @@ listen Gitea server 10.5.10.121 10.5.10.121:3000 cookie s1 check port 3000 server 10.5.10.122 10.5.10.122:3000 cookie s2 check port 3000 backup server 10.5.10.123 10.5.10.123:3000 cookie s3 check port 3000 backup + +listen Maxscale_rw + bind *:3308 + mode tcp + timeout client 10800s + timeout server 10800s + tcp-check expect string is\ running + balance leastconn + option tcp-check + # option allbackups + default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 weight 100 + server 10.5.10.51 10.5.10.51:4008 check + server 10.5.10.52 10.5.10.52:4008 check backup + server 10.5.10.53 10.5.10.53:4008 check backup