by rkalla · 15y ago · 0 comments
If you read the EC2 forums[1] for any amount of time you get used to seeing post after post of "hung sites" running on the Micros when a constant level of demand is made on them (not the intended usage model[2])
Under load the Micros frequently go into a catatonic state with %st ('top') climbing to the moon as the VM environment provisions the brunt of the server's resources to the other VMs on the machine and starves out any hungry Micro instances (as designed).
I didn't think you could host anything on them with regularity. Maybe a swarm of them behind an ELB, not not a single one... anyone else had the same experience that Malda had?
[1] https://forums.aws.amazon.com/thread.jspa?threadID=58323
[2] http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/in...
Also "tens of thousands" of requests is not really a big number anymore. Nginx will happily serve a couple thousand per second even from a micro (until it gets choked by the EC2 resource beancounting).
Are you hosting dynamic content (PHP, Java, etc.) or is everything really heavily cached in static files/varnish and hosted out by nginx quickly so as to avoid saturating CPU or I/O?
There is also a wordpress site and another database-request-heavy site with 500 requests a day.
The problems I had was that the access.log and error.log quickly ate up the 5GB space of the micro instance :-) Causing mysql to stop operating and me to scratch my head for a few minutes.
5GB is not a lot .. you want ruby1.9 with the default setup? That will be 180MB, and so on :-)