Hi Rajiv, HAProxy works the way you described: if a check is unsuccessful, then HAProxy will remove it from the server pool, and stop forwarding traffic to it. As soon as the check is successful, then HAProxy will reintegrate it in the pool and HAProxy will start forwarding traffic to it. With the default configuration, you need exactly three consecutive negative checks to consider the server down and two consecutive positive checks for the server to be considered available (to avoid server flips).
You can override these parameters with the rise and fall server settings. Have also a look to 'timeout check'. cheers On Thu, Dec 27, 2012 at 1:58 PM, Rajiv <rgandh...@gmail.com> wrote: > Hi Experts, > > I need your help to arrive on right set of config file for tcp relay, > who is smart enough to detect > > if server goes down then remove it from active server list and stops > forwarding requests > if server comes back then add it back to active server pool and starts > forwarding requests > > I am aware that there is connect time-out in conf file to detect down server > but I am clueless how to add the same server back once it is up > > or if there is another way to achieve it, please give me your advice. > > Thank-x in advance > > Regards, > Rajiv >