Hi,
I have set up where there are multiple back end servers. On restart of any backend server, on accessing the page , it gives 503 error as below:-
===========
503 Service Unavailable
No server is available to handle this request.
On haproxy restart it works once again. This does not seem to be an appropriate behavior. I would like to know how HAProxy keeps track of the backend servers. on restart of backend server, how it will know if the service has become up.
Hello Jerome,
Thanks for responding.
Following is my haproxy.cfg. I have tried to restart backend “otntomcat” and “ntsm_serv” and it gives the same problem with both.
Request your help.
thanks
Tridev
global
log stdout format raw local0 debug
defaults
mode http
log global
option http-server-close
option httplog
option dontlognull
option redispatch
option forwardfor
retries 3
backlog 4096
timeout client 20s
timeout client-fin 20s
timeout connect 5s
timeout server 20s
timeout tunnel 15m
timeout http-keep-alive 30s
timeout http-request 10s
timeout queue 5s
timeout tarpit 60s
default-server inter 3s rise 2 fall 3
if you use names for server addresses on your server lines, and the IP address associated to the name changes, haproxy can’t know until you restart it if you don’t use a resolvers section as detailed here
I’m guessing that’s what happens here since you fix it with an haproxy restart.