4 ms·
Although I use S3 I don't currently use EC2 and the limited research I've done on it may mean that some of what I'm about to say is incorrect. Hopefully others
by streety 18y ago
Although I use S3 I don't currently use EC2 and the limited research I've done on it may mean that some of what I'm about to say is incorrect. Hopefully others with more experience can jump in and correct any errors.
Firstly, when you talk about a shared hosting plan I assume you don't need to set up the server, you just drop your files in the htdocs folder and your site is ready to go. EC2 instances are analogous to a vps system. You're responsible for setting up the operating system, installing apache, php and mysql. There are 'images' (not sure that's the correct term) set up with everything ready to go but that still leaves you responsible for a lot more of your site than you may be currently.
My understanding is that MySQL is problematic. Currently each instance is given a certain amount of hard drive space but if that instance crashes for any reason all the data is lost. The intention is that S3 is used for your permanent storage but it isn't suitable for running a database on. Permanent drives have been announced but they will only be available later in the year. Until then you are left with work-a-rounds, frequent backups to S3, mirroring drives across instances in the hopes that you'll only ever lose one instance.
Connecting multiple web servers to a single backend database server is handled in the same way it would be with any other vps service or indeed dedicated servers.
- cmer 18y agoThe new persistent storage feature is game changing for MySQL. It is definitely the missing piece to the puzzle. Backing up MySQL is just a matter of calling 1 api command now. Plus, you'll be able to have pretty much unlimited storage mounted to an instance.
- amrithk 18y agoAny tutorials / services that show how one can get instance running up quickly? I am a newbie to this.
- cmer 18y agoRightScale.com is probably the easiest way to start. Try one of their RightImages; we use their CentOS 5 32 and 64 bit images and they're perfect. There's also plenty of tutorials on Google on how to get started, but it'll involve installing Amazon's command line tools, which is definitely more complicated than point and click on RightScale.