Skip to content

Instantly share code, notes, and snippets.

@erichowey
Created October 30, 2021 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erichowey/6a9fe7022cb6ad6d71208454ca57e136 to your computer and use it in GitHub Desktop.
Save erichowey/6a9fe7022cb6ad6d71208454ca57e136 to your computer and use it in GitHub Desktop.
global
daemon
nbthread 4
defaults
mode tcp
timeout connect 5000ms
timeout client 5000ms
timeout server 5000ms
frontend mariadb
bind *:3306
timeout client 480m
default_backend mariadb
backend mariadb
mode tcp
balance roundrobin
timeout server 480m
option mysql-check user heartbeat post-41
server mariadb-1:10.99.1.66:3306 10.99.1.66:3306 check inter 1s
server mariadb-2:10.99.1.67:3306 10.99.1.67:3306 check inter 1s
server mariadb-3:10.99.1.68:3306 10.99.1.68:3306 check inter 1s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment