Skip to content
Commits on Oct 29, 2009
Commits on Oct 25, 2009
Commits on Oct 23, 2009
  1. Use varnish's round-robin director instead of random director to avoi…

    committed Oct 23, 2009
    …d getting 503 errors when some (but not all) back-ends are down. (The random director doesn't necessarily try all back-ends, even if retries is set >= than the number of back-ends.)
    BTW this is only for balancing between back-end nginx servers and there's no problem doing round-robin here, the web servers themselves are still using Passenger's global queueing to balance between the Rails back-ends so there is no issue with one slow request holding up all the others.
  2. Fixed a typo.

    committed Oct 23, 2009
  3. Don't try to install rails each time setup is run because the gem com…

    committed Oct 23, 2009
    …mand isn't very smart and it re-installs the gem even if it's already installed, which can be very slow.
Commits on Oct 22, 2009
  1. Don't do init_backup every time db:create is run because it might be …

    committed Oct 22, 2009
    …slow if there is a large database that already exists. This matters especially after changing the running instances (e.g. adding more app servers) because when you do ec2onrails:setup it will run db:create (harmless) on the existing db.
    Added a TODO in create_database to do the backup then, but first we need to check for the existence of the db and exit if it exists.
  2. Renamed gem to ec2onrails-experimental so it can be published without…

    committed Oct 22, 2009
    … causing existing users to get it automatically when they upgrade.
  3. Cleaned up the before/after hooks and cap tasks a bit:

    committed Oct 22, 2009
    1. Stop using deploy:cold
    2. Removed the db:optimize hook (if it should be run on setup then it should be part of the ec2onrails:setup task, but it's untested right now and I'm reluctant to add it to the default setup until someone can confirm that it works)
    3. run ec2onrails:db:init_backup after creating the db
    4. removed the add_gem_sources task, gem dependencies in recent versions of Rails can specify a source
    5. purge the proxy cache after redeploying
  4. Merge branch 'experimental' into wip-jeweller

    committed Oct 22, 2009
    * experimental:
      Restart god after changing RAILS_ENV because god stores the value of RAILS_ENV and uses it in notifications.
  5. Restart god after changing RAILS_ENV because god stores the value of …

    committed Oct 22, 2009
    …RAILS_ENV and uses it in notifications.
  6. Moved files so that they're clearly related to the gem or to the serv…

    committed Oct 22, 2009
    …er. We can do this now that we're no longer using GitHub to build the gem (GitHub's gem builder expected the gem files to be at the root).
  7. Merge branch 'experimental' into wip-jeweller

    committed Oct 22, 2009
    * experimental:
      Removed unnecessary semicolon.
Commits on Oct 20, 2009
  1. Converted to jeweler for gem building which allowed removal of gem ar…

    committed Oct 20, 2009
    …tifacts (gemspec, Manifest, etc) and custom rake tasks to create those files.
Commits on Oct 19, 2009
  1. Load the config file from /mnt/app/current/config/... instead of /etc…

    committed Oct 19, 2009
    …/ec2onrails. Also renamed method.
  2. Make sure rake gems:install doesn't get run when we're first deployin…

    committed Oct 19, 2009
    …g the code before any server setup has been done.
  3. Fixed some multi-instance bugs, especially the use of capture() which…

    committed Oct 19, 2009
    … only executes it's command on one server (it should only be used to get some info from the server, not for things that should have side effects).
  4. Reduce god's logging verbosity, log to god.log only (not syslog), and…

    committed Oct 19, 2009
    … rotate and archive god.log daily.
Commits on Sep 25, 2009
  1. Updated to Rails 2.3.4.

    committed Sep 25, 2009
  2. Don't do "reset master" after restoring, because this makes the backu…

    committed Sep 25, 2009
    …p of the newly restored instance inconsistent until a full backup is done.
    Thanks to Frank O'Dwyer for pointing this out:
Commits on Sep 21, 2009
  1. Allow the /nginx_status page to work, even if the maintenance page is…

    committed Sep 21, 2009
    … up, and change the regex for the /warmup url.
  2. Reverted failed attempt to evaluate in_role? every time the web check…

    committed Sep 21, 2009
    … is executed.
    This reverts commit aa7e776.
Commits on Sep 16, 2009
  1. Updated gemspec.

    committed Sep 16, 2009
  2. Make sure run_rails_rake_gems_install gets run before migrate rake ta…

    committed Sep 16, 2009
    …sk is run if cap deploy:migrations is used.
Something went wrong with that request. Please try again.