According to the Amazon EC2 FAQ, when an instance is terminated the data is gone. What steps can I take to preserve data in the event my instance is rebooted? I've been looking into EBS and S3 - would either of these be useful to store an active database? How often are instances rebooted anyways?
feedback
|
migrated from stackoverflow.com Jul 27 '09 at 1:24
This question came from our site for professional and enthusiast programmers.
|
Like others have said, EBS--Elastic Block Storage. I am using it myself now that it is released to the general public. It is better than S3 on multiple points:
My experience with EBS so far has been the most positive thing about AWS I've dealt with to date. Update: While my experience with EBS has been positive, others have had issues. Very specifically EBS do not implement fsync() correctly. Ted Dziuba has some interesting words about this in his blog post Amazon — The Purpose of Pain: Myth 2: Architecture Will Save You from Cloud Failures
| ||||
feedback
|
|
EBS would certainly work for a database, and is one of the examples in Amazon's EBS Description. "Amazon EBS is particularly suited for applications that require a database..." EBS will work just like a block device (think hard disk), giving you broad freedom and comfortability using it. S3 is conceptually more like really fast FTP, with a special API. You could conceivably use it as part of a database, but standard databases don't run on it (yet?). You will want to review Amazon's descriptions of performance (EBS > S3), durability (S3 > EBS) and price (depends). | |||
|
feedback
|
|
this site - http://www.sunsetlakesoftware.com/2008/09/13/running-drupal-website-amazon-ec2 -- shows how to make an ebs mount as a persistent drive and automatically take snapshots | |||
|
feedback
|
|
Sounds like if you're worried about losing data then you need the above mentioned EBS. There's a bit of an intro here. I haven't personally looked into it much more than this thus far, I'm just using S3 for backups currently. | |||
|
feedback
|