I am new to haproxy, so please bear with me.
I am trying to configure HAproxy for High-availability of my 2 real-servers
(custom TCP application).

I want the connections to goto backup in case of Master Failover. But, the
connections should keep going to old-bkup(new master) even if the original
server come up.
i.e. HAproxy shouldn't do automatic switchover when orig-Master come up.

What options should I use?
My config file.

##
global
  log 127.0.0.1 local0
  maxconn 100
  user root
  group root
  debug

defaults
  log global
  timeout connect 10s
  timeout client 10s
  timeout server 10s

listen  vproxy  0.0.0.0:9123
   mode tcp
  option tcplog
  option httpchk HEAD /check.tst HTTP/1.0
  server servA 192.168.1.2:9123  check inter 1000 rise 1 fall 3
  server servB 192.168.1.5:9124  check inter 1000 backup


thanks,
-sanjeev kumar

Reply via email to