1

Background info: I am a running a Play Framework based application on two nodes, which are behind single nginx based load balancer. Software update is automated on the top of Jenkins. Application is running on the top of Supervisord process manager.

Question: What is the correct way of updating software to nodes so that service is up and running during software update?

Solution 1: disable port 80 from the node, where software will be updated and open it when node is ready to serve. Load balancer should automatically forward request to another node.

Solution 2: disable node from the load balancer during software update. I don't personally like this solution. Doing changes to load balancer configurations sounds too risky. Also you must restart nginx to have changes in use.

Would you propose some other approach?

1 Answer 1

3

Not sure it will help you, but nginx reload is graceful and does not carry and downtime with it.

Look for example here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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