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 192.168.1.10 master2 192.168.1.11 proxy 192.168.1.12

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 192.168.1.10/11 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

-e MySQL is running.

-e

global
    log 127.0.0.1   local0
    log 127.0.0.1   local1 notice
    #log loghost    local0 info
    maxconn 4096
    #chroot /usr/share/haproxy
    user haproxy
    group haproxy
    daemon
    #debug
    #quiet

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



listen connectors 0.0.0.0:9999
  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       192.168.1.10:9999 check
       server master2       192.168.1.11:9999 check




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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.