In the process of deploying multiple EC2 instances running a Rails app over Unicorn. I currently have a "front end" server running nginx with multiple "Unicorn" upstream providers.
At night, I'd like to turn off a few unicorn servers and in the morning boot them up again (which I have working fine).
Should I also be removing/commenting out the upstream providers in my nginx conf and then doing a nginx config load? (To stop nginx from trying to send clients to my switched-off ec2 instances).
Is there a better way to handle this? (HAproxy perhaps?)