ec2 – Mr Kirkland http://mrkirkland.com (mainly) Tokyo based developer and founder Mon, 18 Jan 2016 14:58:41 +0000 en-US hourly 1 https://wordpress.org/?v=4.4.2 Script for launching load balanced EC2 auto scaling group http://mrkirkland.com/script-for-launching-load-balanced-ec2-auto-scaling-group/ http://mrkirkland.com/script-for-launching-load-balanced-ec2-auto-scaling-group/#respond Sat, 23 Mar 2013 04:17:39 +0000 http://www.mrkirkland.com/?p=217 We just migrated the image processing on artweb.com from our own load balanced EC2 auto scaling group of instances to use blitline instead. The auto scaling group is launched and shut down with the scripts attached below. In our implementation the instances were a simple phpthumb installation that we processed images via http request. Whilst […]

The post Script for launching load balanced EC2 auto scaling group appeared first on Mr Kirkland.

]]>
We just migrated the image processing on artweb.com from our own load balanced EC2 auto scaling group of instances to use blitline instead.

The auto scaling group is launched and shut down with the scripts attached below. In our implementation the instances were a simple phpthumb installation that we processed images via http request. Whilst our solution worked, it wasn’t as robust as blitline, partly because it made no use of queuing (as I mentioned in my scalability post), plus blitline is still pretty cost effective.

However I still have these two handy scripts for spinning up a load balanced group of servers (and shutting them down) which I think are rather handy, so today I’m releasing them on to wilds of the world wide internetz.

Download: http://yumiko.theartistsweb.net/data/asg-scripts.tgz

INSTALLATION
0) you need installed the AWS command line tools http://aws.amazon.com/developertools/2535 docs http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/UsingTheCommandLineTools.html

1) chmod 755 the scripts
# chmod 755 aws-start-as-group.sh
# chmod 755 aws-shut-down-as-group.sh

2) edit the config at the top of each script

USAGE
1) edit config at the top of the aws-start-as-group.sh script
* set your AMI and AVAILABILTY_ZONES
* tweak INSTANCE_TYPE, MAX + MIN INSTANCES depending on your estimated needs (NB number of MIN_INSTANCES will constantly be running)
* for finer tuning experiment with the COOLDOWN and CPU values
* if you are going to run multiple autoscaling groups then you might need to edit the BASE_NAME for each time you run the script (though it auto creates a name based on the date and hour)

2) execute with
# aws-start-as-group.sh

3) terminate all resources with
# aws-shut-down-as-group.sh $BASE_NAME
NB $BASE_NAME is set in the config and when you run this script it is echoed at the end, it's a prefix and todays date

The post Script for launching load balanced EC2 auto scaling group appeared first on Mr Kirkland.

]]>
http://mrkirkland.com/script-for-launching-load-balanced-ec2-auto-scaling-group/feed/ 0
Cloud Computing Price Comparison http://mrkirkland.com/cloud-computing-price-comparison/ http://mrkirkland.com/cloud-computing-price-comparison/#comments Tue, 27 Oct 2009 10:33:02 +0000 http://www.mrkirkland.com/?p=112 Apples and Lizards I’ve just been researching the estimated cost of cloud computing on some of the various providers out there who want to absorb your servers into their clouds. Doing this research has been like comparing apples to lizards. The providers all have their own way of billing you, and there’s a whole host […]

The post Cloud Computing Price Comparison appeared first on Mr Kirkland.

]]>
Apples and Lizards

I’ve just been researching the estimated cost of cloud computing on some of the various providers out there who want to absorb your servers into their clouds.

Doing this research has been like comparing apples to lizards. The providers all have their own way of billing you, and there’s a whole host of extra features offered, some free, some not. To help you on your quest I present some nice tables with the results of my investigations here.

data

I tried taking a fixed monthly budget and seeing what best value I could get for the money as I think this is a fairer and more realistic comparison. I have as far as possible searched for the best deals (e.g. using amazon’s reserved instances and GoGrid’s pre-pay plans).

Price Resource EC2 GoGrid RackSpace VPS.net
$100/Month CPU 3x1GHz 1Xeon 2GHz* 2.8GHz

Ram (GB) 4.2 1 2 1.7

Storage (GB) 480 60 80 70

B/W (GB) 130 0 80 1750

$200/Month CPU 2xDual2Ghz 1Xeon 4Ghz** 6GHz

Ram (GB) 15 1.5 4 3.8

Storage (GB) 1700 90 160 150

B/W (GB) 100 206 80 3750

$500/Month CPU 4xDual2Ghz 3x1Xeon 4x2Ghz* 3×4.8Ghz

Ram (GB) 30 9 8 9

Storage (GB) 3400 420 320 360

B/W (GB) 550 0 500 9000

$1000/Month CPU 8xDual2Ghz 3x3Xeon 2xquadx2Ghz 6×7.2Ghz

Ram (GB) 60 12 16 28

Storage (GB) 6800 520 620 1080

B/W (GB) 1200 1000 1000 27000

* The 2Ghz is actually 1/8th of a 2xquad core 2Ghz machine
* The 4Ghz is actually 1/4th of a 2xquad core 2Ghz machine

Alas GoGrid only displays “Xeon” for the CPU, no further info seems to be divulged.

If the shoe fits

It’s become evident to me that you have to find the best fit for your needs (and future needs) in terms of price and features. It seems Amazon is the cheapest in terms of Memory and CPU, VPS.net by far the best for B/W while GoGrid throws in great freebies such as 100% SLA + Load balancing.

Here’s some quick facts to throw into the mix:

Amazon

  • No persistant storage (you can use EBS or S3 for this at extra cost)
  • No SLA
  • Support costs $100/month or $400/month
  • Lot’s of complementary services (Storage, RDB, Billing etc.)

GoGrid

  • 100% SLA
  • Free Load Balancer
  • Free 24/7 support

Rackspace

VPS.net

  • Free Daily Backups
  • Support $99/month (includes 100% SLA)

Some price comparison tools

Anyway, I’d be interested to hear anyone’s real experiences with hosting services in the cloud.

The post Cloud Computing Price Comparison appeared first on Mr Kirkland.

]]>
http://mrkirkland.com/cloud-computing-price-comparison/feed/ 16