DEV-380: added haproxy stuff to be ready for communication in case of M-M-replication for mariadb
parent
0eac3f3d3c
commit
710b85a275
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@
|
||||
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
|
||||
# server maria-02 {{ shared_service_maria_2nd_hostname }}:3306 maxconn 2048 check
|
||||
Loading…
Reference in New Issue