I'm thinking to move my app to ec2, but Im reading that amazon does not
guarantee that my instance doesn't die?
So my question how can people use it for rails, and what does they do
when the amazon ec2 instance dies? Do we have any automatic job to get
new instance and get the app up and running again with all the gems
etc.?
I’m thinking to move my app to ec2, but Im reading that amazon does not
guarantee that my instance doesn’t die?
So my question how can people use it for rails, and what does they do
when the amazon ec2 instance dies?
Do we have any automatic job to get
new instance and get the app up and running again with all the gems
etc.?
Amazon EC2 has excellent uptime and I usually go with a minimum of 2 instances.
Furthermore, you can set it up so that it automatically spins-up a new instance when one dies or sends a notification so that you can perform a manually boot. Next, Amazon is very different from your traditional hosting companies because they charge by the hour for each active instance. Thus, in order for them to make money, the active instance needs to be running. Otherwise, they will loose money.
You can find many gems on gemcutter.org for interfacing with Amazon EC2 as well as their other services. For a current listing of AMIs, I would recommend directing those questions to Amazon. Lastly, there are alternatives for using EC2 like Engine Yard and Rightscale to name a few. Also, there are other architectures like Google App Engine. Thus, I would recommend doing your research as well as test driving these different systems.
I'm thinking to move my app to ec2, but Im reading that amazon does not
guarantee that my instance doesn't die?
So my question how can people use it for rails, and what does they do
when the amazon ec2 instance dies? Do we have any automatic job to get
new instance and get the app up and running again with all the gems
etc.?
My instance on Amazon now has an uptime of 143 days. Use Elastic Block
Storage (EBS) for persistent data (e.g. databases, application code, and
configuration data).
Yeah I know I should have down notification and restart/reboot more automated,
but I haven't needed it yet.