title: HAproxy status showing DOWN
body: <p>I have setup MariaDB Galera cluster which i have tested and it working fine on the following servers:
  db1 192.169.0.1
  db2 192.169.0.2
  db3 192.169.0.3</p>
  
  <p>They are all running on CentOS-6.5, and the MariaDB version is 10.0</p>
  
  <p>My goal was to use HAproxy to perform load balancing. I have installed and configured HAproxy on a separate server</p>
  
  <pre><code>db4 192.168.0.4 
  </code></pre>
  
  <p>with no cluster setup or MariaDB installed on it, only HAproxy. The problem is, the HAproxy does not seem to be working i.e, doing the load balancing. Its starts ok and i can access it via the web interface:</p>
  
  <pre><code>http://192.168.0.4:9000/haproxy
  </code></pre>
  
  <p>but the status for the servers shows that they are down, even if they are actually up and running on their respective machines. The HAproxy config is as follows:</p>
  
  <pre><code>global
  log 127.0.0.1 local0 notice
  user haproxy
  group haproxy
  
  defaults
  log global
  retries 2
  timeout connect 1000
  timeout server 5000
  timeout client 5000
  
  listen mariadb-cluster
  bind 0.0.0.0:3306
  mode tcp
  option mysql-check user haproxy
  balance roundrobin
  server db1 192.168.0.1:3306 check
  server db2 192.168.0.2:3306 check
  server db4 192.168.0.3:3306 check
  
  listen webinterface
  bind 0.0.0.0:9000
  mode http
  stats enable
  stats uri /haproxy
  stats realm Strictly\ Private
  stats auth admin:password
  </code></pre>
  
  <p>db1, db2, db3 and db4 are just hostnames for each server. So when i run the command #hostname on the first server, it will display db1.</p>