digitauusa Posted February 19, 2019 Report Posted February 19, 2019 # 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 global log /dev/log local0 info maxconn 4096 user haproxy group daemon stats socket /var/run/haproxy/haproxy.sock mode 777 defaults 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 127.0.0.1:15984 balance roundrobin server ${_HOSTNAME} 127.0.0.1:5984 check listen bigcouch-mgr 127.0.0.1:15986 balance roundrobin server ${_HOSTNAME} 127.0.0.1:5986 check listen haproxy-stats 127.0.0.1:22002 mode http stats uri / EOF # 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 {"couchdb":"Welcome","version":"1.1.1","bigcouch":"0.4.2"} curl localhost:15986 {"couchdb":"Welcome","version":"1.1.1"} curl localhost:15984/_all_dbs [] We are having an issue on getting the haproxy to connect. Is there something we are missing?
digitauusa Posted February 20, 2019 Author Report Posted February 20, 2019 Anyone have advise on setting this up in CentOS7?
Sergey K Posted February 20, 2019 Report Posted February 20, 2019 Did you disable firewall and SELinux? # systemctl disable firewalld
Recommended Posts