Jump to content
2600Hz Community

Setting HAProxy Issue


Recommended Posts

# Install the Kazoo-wrapped HAProxy
yum -y install kazoo-haproxy

# Edit /etc/kazoo/haproxy/haproxy.cfg to setup the backend server to point to BigCouch
# For AiO installs, it should look something like:

cat >> /etc/kazoo/haproxy/haproxy.cfg << EOF
        log /dev/log local0 info
        maxconn 4096
        user haproxy
        group daemon
        stats socket    /var/run/haproxy/haproxy.sock mode 777

        log global
        mode http
        option httplog
        option dontlognull
    option log-health-checks
        option redispatch
        option httpchk GET /
        option allbackups
        option http-server-close
        maxconn 2000
        retries 3
        timeout connect 6000ms
        timeout client 12000ms
        timeout server 12000ms

listen bigcouch-data
  balance roundrobin
    server ${_HOSTNAME} check

listen bigcouch-mgr
  balance roundrobin
    server ${_HOSTNAME} check

listen haproxy-stats
  mode http
  stats uri /


# Enable and start HAProxy
systemctl enable kazoo-haproxy
systemctl start kazoo-haproxy

# Check the status of haproxy
kazoo-haproxy status
|Host                      |Backend         |Status |Active |Rate   |1xx    |2xx    |3xx    |4xx    |5xx    |Ping   |
|aio.kazoo.com             |bigcouch-data   |UP     |0      |0      |0      |0      |0      |0      |0      |1ms    |
|aio.kazoo.com             |bigcouch-mgr    |UP     |0      |0      |0      |0      |0      |0      |0      |1ms    |

curl localhost:15984

curl localhost:15986

curl localhost:15984/_all_dbs

We are having an issue on getting the haproxy to connect. Is there something we are missing?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...