Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created February 5, 2009 18:47
Show Gist options
  • Select an option

  • Save fairchild/58911 to your computer and use it in GitHub Desktop.

Select an option

Save fairchild/58911 to your computer and use it in GitHub Desktop.
ideas for a poolparty configuration
pool :att do
cloud :rails_apps do
using :ec2
instances 2..50
expand_when load > 0.8
expand_when instances > 10 do
load > 0.8 to :slicehost
load > 1.4 to :slicehost
cpu > 2.0 to :synaptic
end
end
cloud :ec2 do
using :ec2
provides :rails_apps, :drupals_app
homogenous true
end
cloud :synaptic do
end
end
./
./app
./config
./config/poolparty.rb
describe_application :minerva on :att do
rails_app
end
./config/deploy.rb
in_pool :att as :rails_app
# We know we ar elooking for a resource that provides rails_app
# so we go fetch an instance from the cloud that provides rails apps
# and deploy to that instance
describe :rails_app do
requires :mysql
requires :ruby do
requires_gem :rails
end
end
describe :drupal_app do
requires :mysql
requires :php
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment