From e145d9e08787bd5f71e976caefc4e35fafa11bc8 Mon Sep 17 00:00:00 2001
From: Javier Diaz <javier.diaz62.ctr@cvr.mil>
Date: Mon, 1 Feb 2021 11:45:48 -0600
Subject: [PATCH] Add load balancing to MySQL in HAProxy

---
 formulas/haproxy/files/haproxy.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/formulas/haproxy/files/haproxy.cfg b/formulas/haproxy/files/haproxy.cfg
index c21f419e..8d27359b 100644
--- a/formulas/haproxy/files/haproxy.cfg
+++ b/formulas/haproxy/files/haproxy.cfg
@@ -208,6 +208,7 @@ listen manila_cluster
 listen mysql_cluster
   mode tcp
   bind {{ management_ip_address }}:3306 transparent
+  balance  roundrobin
   option  tcpka
   option  tcplog
   option  tcp-check
-- 
GitLab