Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We're using stunnel and HAProxy for our load balancing needs.

In nginx you can enable a maintenance state, based on the existance of a file on a child server (see Configure nginx to serve a 503 if a file exists).

Is it possible to put a server node into 'maintenance mode' based on the existance of a file, when using HAProxy?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Yes you can.

If the health check file is missing. Check the disable-on-404 option.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.