views:

184

answers:

3

Hi,

I was curious if anyone has experimented with auto-scaling web or db tier in ec2 or other cloud computing infrastructure? It seems theoretically possible but I am curious what the practical limitations are/maybe.

Thanks, manish

+1  A: 

This is more of a question than an answer, but I'm about to start experimenting with autoscaling myself (most likely using the Amazon CloudFront facilities) and am thinking that instance startup time will be a factor. I've noticed that a new EC2 instance can take from 5 to 20 minutes to start up, so it's not as if you can instantly add more capacity when your load increases; it seems like you would need one or more idle instances to be running and ready to pick up increased load.

gareth_bowles
Very true I have noticed that on the windows servers esp. I suppose you could have 1 or 2 "waiting" in the wings and as the get consumed spin up another. Are you using thinking of using a load balancer or doing DNS round robin?
Manish V
We're planning to use the Amazon auto-scaling tools (http://aws.amazon.com/autoscaling/)
gareth_bowles
+2  A: 

We are also starting to look at auto-scaling.

The first candidate approach is to use Amazon's ELB (Elastic Load Balancer) and Cloud Front. However, our traffic is a web service. Caller's frequently send the 100-Continue http message, and ELB cannot understand that message. There's no word yet from Amazon on when that might be fixed. Also, there are a number of complaints in the Amazon forums about ELB not handling heavy load.

LigHTTPD 1.5 looks like a promising partial solution, in that it can detect when an instance is not functioning and transparently take it out of the rotation, and can be dynamically reconfigured without restarting the load balancer.

There are a number of commercial solutions as well. We will probably have a look at Right Scale.

Eric J.
+1  A: 

Late addition:

Consider SimpleDB as well... this would eliminate the DB scaling side.

For autoscaling, we rolled our own scripts to monitor, launch, and provision servers and yes, the whole process takes about 7 minutes. We do a little predictive analysis to guess when new servers will be needed and then just break them down if they aren't. Total cost: ~10 cents.

Also, Scalr looks promising as a commercial solution (haven't used it).

Chad

Chad