Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Pragmatic Approach to Rails Deployments and Operations

A Pragmatic Approach to Rails Deployments and Operations

Lessons learned from deploying and managing hundreds of Rails applications

technicalpickles

May 28, 2012
Tweet

Other Decks in Technology

Transcript

  1. Lessons learned from deploying and managing hundreds of Rails applications

    A Pragmatic Approach to Rails Deployments and Operations Monday, May 28, 12
  2. Lessons learned from deploying and managing hundreds of Rails applications

    Rails Deployments and Operations Monday, May 28, 12
  3. •Takes place on laptops, desktop machines, staging servers •No real

    users •Unknown if it truly works Monday, May 28, 12
  4. •Takes place on laptops, desktop machines, staging servers •No real

    users •Unknown if it truly works •Tests are green, but... Monday, May 28, 12
  5. •Lives on servers located in data centers and clouds •Real

    users •Either code works, or it doesn’t Monday, May 28, 12
  6. •Lives on servers located in data centers and clouds •Real

    users •Either code works, or it doesn’t •Either the application is available or not Monday, May 28, 12
  7. •Working features (or at least that work enough) •Infrastructure to

    keep the application up and running (or at least up enough) Monday, May 28, 12
  8. •Working features (or at least that work enough) •Infrastructure to

    keep the application up and running (or at least up enough) •A business model that works (or at least works enough) Monday, May 28, 12
  9. •Working features (or at least that work enough) •Infrastructure to

    keep the application up and running (or at least up enough) •A business model that works (or at least works enough) •??????????????????????? Monday, May 28, 12
  10. Although technically, I guess it’s the same A play on

    release early, release often. Monday, May 28, 12
  11. The front page is taking 10 seconds to load, but

    we really need it to be loading in under 1 second The front page feels slow Monday, May 28, 12
  12. The primary key is at 90% of it’s maximum, up

    from 80% yesterday, and looks like it’ll run out overnight. The primary key seems like it’s increasing rapidly Monday, May 28, 12
  13. IO fluctuates up to 90% sometimes, but doesn’t appear to

    have a negative effect IO seems high Monday, May 28, 12
  14. How would you prefer to know? •A late night phone

    call? •Angry tweets that you are down? Monday, May 28, 12
  15. How would you prefer to know? •A late night phone

    call? •Angry tweets that you are down? •You personally checking everything all the time? Monday, May 28, 12
  16. How would you prefer to know? •A late night phone

    call? •Angry tweets that you are down? •You personally checking everything all the time? •An automated system to let you know? Monday, May 28, 12
  17. “I read a blog post about how mongo is totally

    web scale” Monday, May 28, 12
  18. If you’re still going to go hipster... •experiment in branches

    •understand operational impact •Staging! Monday, May 28, 12
  19. Further Reading •Web Operations - John Allspaw and Jesse Robins

    •Continuous Delivery - Jez Humble and David Farley •“Web Operations for Developers 101” Monday, May 28, 12