Text file `default/haproxy-mariadb.cfg'

HAProxy config file for HAProxy - MariaDB Galera cluster

listen mariadb-cluster-write bind *:3306 mode tcp option httpchk default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 option tcplog {% for eachServer in (outClusters|first).servers if eachServer.location <= 255 %} server mariadb-{{ eachServer.id }} {{ eachServer.location == server.location ? eachServer.privateIp : eachServer.publicIp }}:3306 check{{ not loop.first ? ' backup' }} {% endfor %} listen mariadb-cluster-read bind *:3307 mode tcp option httpchk default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 64 maxqueue 128 option tcplog {% for eachServer in (outClusters|first).servers if eachServer.location <= 255 %} server mariadb-{{ eachServer.id }} {{ eachServer.location == server.location ? eachServer.privateIp : eachServer.publicIp }}:3306 check {% endfor %}