Haproxy Script to monitor application port


#1

Hi!

I have one linux box running HAproxy and two windows box running some application on port 8080.
I want that if the service on port 8080 is not responding then HAproxy consider that server is down.
I was thinking to have some script which runs on HAproxy and keep checking port like telnet server1 8080 and if the service is not responding that it will make the server as down state and will not forward any request to this server.

Anyone can suggest something or point me to some material that can help me in this.

Thanks


#2

No need for this, haproxy can health check the backends itself; please read:
http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#5.2-check


#3

Thats a useful feature. Thanks :slight_smile: