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

Zero-downtime Deployment

Jairo Diaz
September 10, 2012

Zero-downtime Deployment

This presentation shows different techniques to achieve zero-downtime deployment with HAProxy, Nginx and Unicorn.

Jairo Diaz

September 10, 2012
Tweet

More Decks by Jairo Diaz

Other Decks in Programming

Transcript

  1. We will go through three options • Using a HAProxy

    • Using Nginx • Using Unicorn
  2. Using Nginx (reverse proxy) website.com Reverse Proxy Cached Application New

    Instance webApp MySQL (Only for read only mode, i.e directory service)
  3. Using Unicorn website.com Reverse Proxy MySQL New Unicorn master Unicorn

    workers Unicorn workers Unicorn workers Shared Socket Pull Old Unicorn master Unicorn workers Unicorn workers Unicorn workers