Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i am using ubuntu and succeeded to create 2 servers Master-Master using tungsten and its working perfectly, with this setup master1 master2 proxy

i want to add proxy to utilize the failover and load balancing if i shutdown 1 instance the proxy will redirect all the traffic to other node easily,

based on this wiki tungsten and HAproxy

i tried HAproxy and tungsten and its failed, it always showing Down in the stats when i telnet port 9200

note * Haproxy only installed in proxy server

its saying running

-e HTTP/1.1 200 OK

-e Content-Type: Content-Type: text/plain


-e MySQL is running.


    log   local0
    log   local1 notice
    #log loghost    local0 info
    maxconn 4096
    #chroot /usr/share/haproxy
    user haproxy
    group haproxy

    log     global
    retries 3
    option redispatch
    maxconn 2000
    contimeout      5000
    clitimeout      50000
    srvtimeout      50000

listen connectors
  mode tcp
  #server and client timeout = 3600 = 1 hour
  timeout client  3600000ms
  timeout server  3600000ms
  balance leastconn
  option httpchk
  option allbackups
  default-server port 9200 inter 2s downinter 5s rise 3 fall 2 slowstart 60s maxconn 2048 maxqueue 128 weight 100
       server master1 check
       server master2 check

listen stats
mode http
balance roundrobin
stats enable
stats uri /haproxy
stats realm HAProxy
stats auth tungsten:secret
share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.