37 ms·
Ask yc.news: Opinions on EC2?
I'm looking into Amazon's EC2 "web service", and I'm wondering if anyone else here has looked at/utilized it. What are its strengths and weaknesses? What did you use it for? What should it not be used for?
- piers 19y agoI've not used it, but have a read of this: http://www.25hoursaday.com/weblog/2007/07/04/AmazonEC2S3DoesntCutItForRealApplications.aspx http://www.25hoursaday.com/weblog/2007/07/04/AmazonEC2S3Does...
- davidw 19y agoFrom reading the comments, it's kind of difficult to figure out what gets persisted and what doesn't. I mean, if it's persistent until you shut the machine down, that's not so bad... it's like having a VPS somewhere, no?
- wmf 19y agoThe local storage is persistent until Amazon shuts down the virtual machine whenever they want. (They say that it only happens due to hardware failures or EC2 platform upgrades, but you have no control over those events.)
- kirubakaran 19y agoYou can design around this, given the upside of using EC2+S3. It is anyway better to design your app with potential failure in mind, don't you think?
- gojomo 19y agoThat post ("Amazon EC2 + S3 Doesn't Cut it for Real Applications") contains a false statement which the author has not corrected, even though commenters there quickly pointed out its falsehood. The falsehood is: "There is no persistent storage in EC2 so if your virtual server goes down for any reason such as taking it down to install security patches or a system crash, all your data is lost." Instances can reboot, under operator control or due to a crash, and still retain their existing hard drive storage. Only less frequent 'instance termination' causes a loss of hard drive contents. True, there are no guarantees that any instance won't be terminated by Amazon or other system failures at any time, so you're supposed to have your own backup and persistence strategy. But in practice, full terminations are rare, and Amazon has even given warnings when system upgrades mean large instance turnover is expected. (Though, there is no guarantee they will do so.) So the falsehoods above are "[data is lost] if your virtual server goes down for any reason" and both concrete examples given, "taking it down to install security patches" and "system crash".
- felipe 19y agoThree days ago I received an email from Amazon alerting me that "one or more of your instances are running on hosts degraded due to hardware failure.", and giving me a week to migrate to another instance. I have a script that creates daily instance images as a back-up procedure, so the "migration" was just a matter of starting another instance using the most recent image and I was up and running. I looked back on my logs and found out that the particular degraded instance was running since June without any problems or shutdowns. Not bad for a VPS... I'm very aware that Amazon provides no guarantees, but I have to say that my confidence on EC2 increased after this incident.
- staunch 19y agoI think it's super useful for certain kinds of things where you need lots of servers on-demand. For most startups I think boring old fashioned dedicated server accounts are the way to go. The price, simplicity, and control is unbeatable IMHO.
- davidw 19y agoFirst impression: My requests time out an awful lot: Read timeout. Please try again later. If this persists please visit the AWS developer forums to see if it's the result of a known issue. That and doubts about permanent storage are downers.
- kirubakaran 19y agoCan you please give more details about your set up, the country you are accessing EC2 from etc? I am curious to know coz I am in the process of putting all my eggs in the EC2 basket now.
- davidw 19y agoI'm in Austria, and I quite often ssh into servers in the US, with no problems at all. I've been having lots of issues with the EC2 tools timing out, though.
- kirubakaran 19y agoThanks. I've heard that many non-US users have problems with EC2.
- breck 19y agoI talked to a guy last night at TC40 who swears by EC2. But he recommends using RightScale on top of it. I've given only a cursory glance at RS, but it looks interesting. And the guy just sold his company in the past week so it definitely worked for him.
- kirubakaran 19y agoI use EC2 and I do swear by it. I see the initial extra effort you need to put in to get it to work right (designing for failover etc) as: 'the more you sweat in practice, the less you bleed in battle'. I first ported a toy app that I wrote (http://www.instantwordsearch.com http://www.instantwordsearch.com) to EC2 - as an exercise. I personally learnt a lot in the process. Now I use EC2 for everything I do. It is a LOT of fun (imho). Interesting links: http://jimmyg.org/2007/09/01/amazon-ec2-for-people-who-prefer-debian-and-python-over-fedora-and-java/ http://jimmyg.org/2007/09/01/amazon-ec2-for-people-who-prefe... http://jimmyg.org/2007/09/01/custom-debian-ec2-amis-from-xen-images/ http://jimmyg.org/2007/09/01/custom-debian-ec2-amis-from-xen...
- davidw 19y agoSo how'd you deal with its ephemeral nature?
- kirubakaran 19y agoI have my own AMI - so, I can bring the instance up as soon as it craps out. (This has never happened so far - which means I am either lucky or the fear is overblown). I have another server outside of AWS babysitting EC2. I am designing a little bit on the paranoid side and making automatic incremental backups in S3. Recovery script will automatically restore using this too. I've simulated failures and I know it is safe. (this is something you need to do anyway - there are no guarantees in life!) I still haven't automated the DNS change that needs to be done when you get a new instance. I will be handling this soon. There are some cool hacks already out there if you google for ec2 dns
- davidw 19y agoHaving a central server to run everything seems pretty key to the entire operation. Is that where you store your data, or do you just hope to be able to fix things from backups to S3 if you lose a server?
- kirubakaran 19y ago
- SwellJoe 19y agoWe're announcing a product that manages EC2 instances in the next week or so (along with Solaris Zones, Xen, and vserver instances). So far we're seeing pretty good results with the people who are using EC2, but reliability is currently less than ideal. If EC2 were on the various hosting reliability charts I'm pretty sure it'd be down in the bottom half of the pack (and given some of the podunk three-server operations out there calling themselves "hosting providers" this is pretty dismal). As far as I can tell, you can expect several minutes of downtime every month, and sometimes longer. Most of the top tier hosts average a couple of minutes per year downtime...but the fluid nature of EC2 should make it possible to get near 100% uptime...when Amazon takes a network segment down, they can theoretically do a live migration of your instances. So far, they don't seem to actually have the capability to do so. The S3 piece of the equation brings it back up in usefulness...but I don't know that I'd want to rely on it exclusively for my web applications just yet, unless high volume storage was a core part of my problem domain.
- kvogt 19y agoWe run a live video cluster on EC2 that scaled from 10 nodes to 100+ and back again several times. Amazon keeps things running smoothly even when we're pushing close to 2gbps of video to 14,000 simultaneous clients. So I would say it performs very well for jobs requiring lots of computation or bandwidth. However... we have our web servers in a colo. Ping times to EC2 aren't fantastic, so we use a traditional CDN for static content and a colo for application servers in order to keep things snappy.