diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-15 23:41:52 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-15 23:41:52 +0000 |
commit | 9f278fcd2f1cd12122f65a9fd6b57355119a8588 (patch) | |
tree | 29e40ecf7c2e98d21fba496d9b5d5237707c4f34 | |
parent | Move perl configs (diff) | |
download | config-9f278fcd2f1cd12122f65a9fd6b57355119a8588.tar.bz2 config-9f278fcd2f1cd12122f65a9fd6b57355119a8588.tar.xz config-9f278fcd2f1cd12122f65a9fd6b57355119a8588.zip |
Add MySQL pool
-rw-r--r-- | etc/haproxy.cfg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/haproxy.cfg b/etc/haproxy.cfg index 050529c..dddc4ce 100644 --- a/etc/haproxy.cfg +++ b/etc/haproxy.cfg @@ -53,6 +53,16 @@ listen imaps server defiant defiant:11993 observe layer4 check server firebrand firebrand:11993 observe layer4 check +# MySQL +listen mysql + description MySQL + bind *:3306 + mode tcp + timeout client 2h + timeout server 2h + server defiant defiant:13306 observe layer4 check + server firebrand firebrand:13306 observe layer4 check backup + # Stats listen stats bind *:9000 |