auser / poolparty

Run a self-healing, auto-scaled and monitored cloud simply, in the clouds, on nearly any hardware, such as EC2, eucalyptus and vmware

This URL has Read+Write access

name age message
file .gitignore Tue Aug 18 11:58:11 -0700 2009 Added debug flag to wait_for_port as well as up... [auser]
file .gitmodules Fri Aug 07 13:33:50 -0700 2009 Removed dslfiy and parenting as submodules [auser]
file .rdebugrc Thu May 28 21:02:44 -0700 2009 Move base_packages/* files to plugins/* Elimina... [fairchild]
file License.txt Wed Apr 01 11:50:54 -0700 2009 merge deps_remoter_merge branch. This brings in... [fairchild]
file Makefile Fri Jul 10 23:27:36 -0700 2009 Adding more tests to chef [auser]
file README.rdoc Wed Dec 02 15:32:34 -0800 2009 Added trigger demo to readme [auser]
file Rakefile Tue Oct 27 15:22:03 -0700 2009 Fixed tests [auser]
file VERSION.yml Tue Dec 22 12:47:52 -0800 2009 Version bump to 1.4.6 [auser]
directory bin/ Mon Jan 04 10:24:41 -0800 2010 Merge branch 'master' of git://github.com/wepla... [auser]
directory config/ Mon Nov 30 14:28:24 -0800 2009 Fixing failing error with rdoc [auser]
directory examples/ Tue Jan 05 14:35:49 -0800 2010 add an RDS example [rubysolo]
directory lib/ Wed Jan 06 13:55:53 -0800 2010 Merge branch 'rubysolo/master' [auser]
file poolparty.gemspec Wed Dec 02 20:38:27 -0800 2009 updated gemspec [auser]
file setup.rb Sun Oct 19 15:47:21 -0700 2008 Updating resourcing DSL [Ari Lerner]
directory test/ Tue Jan 05 14:07:09 -0800 2010 initial implementation of RDS support [rubysolo]
directory vendor/ Tue Dec 22 17:21:18 -0800 2009 Update amazon-ec2 gem. Update cloud-list binary... [fairchild]
README.rdoc

PoolParty

poolpartyrb.com

DESCRIPTION:

PoolParty makes cloud provisioning and management easy. PoolParty provides a unified interface for defining and managing cloud infrasturcure on different cloud providers (just Ec2 for now).

Code your cloud!

SYNOPSIS:

PoolParty is written with the intention of being as application-agnostic as possible. It installs only the basic required software to glue the cloud together on the instances as listed below.

Quickstart

For instance, to start a basic cloud, let’s write one:

  pool "demo" do
    cloud "app" do
      instances 2..10
      using :ec2
      autoscale do
        trigger :lower_threshold => 0.3, :upper_threshold => 1.0, :measure => :cpu
      end
      security_group do
        authorize :from_port => 22, :to_port => 22
      end
      load_balancer do
        listener :external_port => 8080, :internal_port => 8080, :protocol => 'tcp'
      end
    end
  end

Simply by issuing the command:

  cloud start

This will create an ec2 auto scaling group that will launch the minimum_instances (2 in this case,) inside a security group. The default naming of most objects, such as security_groups, auto scaling groups, launch_configurations, load_balancers and keypairs follow the poolname-cloudname convention. There are a number of commands PoolParty offers to interact with your cloud. They include:

  • cloud start
  • cloud terminate
  • cloud reboot
  • cloud configure
  • cloud compile
  • cloud console
  • cloud expand
  • cloud contract
  • cloud list
  • cloud show
  • cloud ssh

Clouds are distinguished by security groups. If a security group is not specified in your cloud block, one will be created based on the naming convention poolname-cloudname.

Extending

To add a cloud_provider, there are four methods that need to be implemented. Simply sublcass the CloudProviders module and require it in your clouds.rb (or commit it back to PoolParty). Those four methods are:

  • run_instance
  • terminate_instance
  • describe_instances
  • describe_instance

Examples

Checkout the [examples](examples/) directory and its README for some more ideas and examples.

That’s it!

More documentation can be found at the site: <a href="http://poolpartyrb.comhttp://poolpartyrb.com>.

REQUIREMENTS:

  • Ruby

INSTALL:

from gemcutter.org;

    sudo gem install poolparty

LICENSE:

(The MIT License)

Copyright © 2009 Ari Lerner, CloudTeam

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.