Tagged: ec2

Elastic Cloud Computing

One of the most difficult tasks when putting up a new site is picking the right host. Moving hosts later on is terribly difficult so choosing the correct hosting company is as important as selecting a business partner. I've collected about 30 hosting companies in my delicious bookmarks. Some are specific to a platform others are really cheap. I recorded them because they looked interesting.

The latest movement in web hosting is towards cloud hosting. This is the holy grail for the user and for the hosting company. Imagine a web host that scales as you grow. Everyone would love nothing more than a host that could handle getting slammed by Digg.

Amazon's ec2 service offers scalable services, but it is not a simple as your typical web hosting company. The Ruby gem ec2onrails will simplify the process of getting your Ruby on Rails application up an running. RightScale builds on ec2 to make it easy to deploy your application. They add a dashboard and make it easy to load balance and ...

Continue Reading →

Using Amazon’s Web Services from Ruby – Jonathan Younger

Right Scale has a great gem: gem install right_aws RightScale RightAws::Sqs RightScale RightAws::Ec2

They will automatically retry errors for you.

gem install kato Kato - EC2 Pool Manager

 require 'rubygems' requrie 'right_aws' RightAws::RightAWSParser.xml_lib = 'libxml'

SQS = RightAws::Sqs.new(access_id, access_key) #get an SQS object queue = SQS.queue("name_of_queue") #create a or get a reference to an existing queue queue.psuh "put message in the queue" #8k max queue.size # get an approximate number of message in the queue message = queue.receive # message.delete # if you don't delete your messages they will show up again

 require 'rubygems' requrie 'right_aws' RightAws::RightAWSParser.xml_lib = 'libxml' EC2 = RightAsw::Ec2.new(access_id, access_key) EC2.describe_instances # get a hash of running instances EC2.run_instances("name_of_ami", minium_instances_to, max) # start up instances EC2.terminate_in...

Continue Reading →