Every now and then Elastic Load Balancer (ELB) kicks out one of my servers for being unavailable. Which is good -- hardly any interruption.
Usually, just rebooting the instance through the AWS Console fixes the problem.
I would like to have my EC2 instance automatically reboot when it becomes unavailable.
What's the best way to do this? (it happens to be a Windows instance, but ideally that shouldn't matter)
I got a cheap EC2 micro instance and wrote a simple script that lists all my servers on EC2, and does a GET on each one to make sure that it's functioning properly. If a server isn't functioning properly, my script reboots it. I have the script running once every 10 minutes.
Woulda been slightly easier if there were a service out there to do this for me, but the system was easy to set up and the micro instance is cheap.