global user haproxy group haproxy daemon maxconn 4096 defaults mode tcp balance roundrobin timeout client 30000ms timeout server 30000ms timeout connect 3000ms retries 3 frontend stats bind *:6666 mode http stats enable stats uri /haproxystats stats show-node stats auth {{ wordpress_haproxy_admin_username | default('haproxy-admin') }}:{{ wordpress_haproxy_admin_password }} stats refresh 10s frontend wordpress_backend bind 0.0.0.0:3306 default_backend mariadb_servers backend mariadb_servers option tcp-check server maria-01 {{ shared_service_maria_1st_hostname }}:3306 maxconn 2048 check # TODO - disabled till M-M-replication is in place # server maria-02 {{ shared_service_maria_2nd_hostname }}:3306 maxconn 2048 check