If I launch an instance on Amazon's EC2, how can I make my application failure resilient? It seems I'd need a machine to monitor my instance to check if it goes down, but then, what if that monitor goes down? I think I'm missing something.
The context is this: http://aws.amazon.com/articles/1632
It says, "For instance, if the instance on which controller thread was running dies, it can be brought up and resume the previous state as if nothing had happened. This was accomplished by creating a pre-configured Amazon Machine Image, which when launched dequeues all the messages from the Amazon SQS queue and their states from the Amazon SimpleDB domain item on reboot."
What brings the instance back up? Is this automatic?