Hello Robert,

Thank you for this answer. Indeed, I didn't realize that we could use the haport this way :)

Is there any existing program or scripts exemple somewhere that we could use for our purpose ?

In the team we only have web developpers, so I think nobody is capable of doing this...

Best regards,

Martin

Robert Segall a écrit :
I saw the ha_port diective but it is useless in our case...
    
That's a puzzling statement. HAport gives you a completely generic
method for checking on back-end health.

There is no requirement that the HAport be opened by the web server. Any
socket will be fine, opened by whatever program you want.

In your case what you want is a small program that opens a receiving
socket and periodically accepts connections on it (this will be defined
as the HAport). In the meantime it also checks that your back-end is
healthy (whatever that may mean - you are free to make it as simple or
as fancy as you wish), and closes the socket if it gets the "wrong"
response, or no response, or anything you define. The socket is
re-opened once the back-end is healthy again.

Given the countless possibilities involved I think this is a rather
flexible approach, allowing you to tailor your health checks to your
needs. Putting such checks in Pound itself would create needless
complexity