Continuous Deployment at Spreaker

60 %
40 %
Information about Continuous Deployment at Spreaker
Technology

Published on February 14, 2014

Author: pracucci

Source: slideshare.net

Description

Continuous Deployment on AWS EC2 made easy with Fabric and Zonify.

Continuous Deployment at Marco Pracucci

Platform for Creating and Sharing Audio 8 people (4 developers) 2M unique listeners / month 3.5M audio tracks created 500 reqs / sec

We run 80% of our traffic on AWS about 60 EC2 instances and 50TB on S3

We deploy frequently [even on friday] 51 deploys in last 30 days

How we deploy the web [php] app in 90 seconds

Deploy task

code repository 1. ssh fab www.deploy EC2 instances

code repository 2. checkout fab www.deploy EC2 instances

code repository Checklist - local cache warmup 3. warmup - db schema migrations fab www.deploy - check consistency EC2 instances

code repository 4. switch code fab www.deploy everything ok? EC2 instances

code repository Checklist - iptables --dport 80 -j DROP - ln -sfn /var/www/new /var/www/curr 4. switch code - clear bytecode cache fab www.deploy - iptables --dport 80 -j ACCEPT EC2 instances

notify team on IRC generate report fab www.deploy

which instances to deploy? we do auto-scaling, they change dinamically

we exploited DNS

Split infrastructure into roles EC2 instances www1 api1 worker1 api2 www2 { worker2 { www3 { api3 role: api role: web role: worker-web

Tag each instance with roles [space separated roles for multi-role instances]

Map names and roles to DNS https://github.com/airbnb/zonify Creates Route 53 DNS entries for all instances and roles

Address a single instance

Address instances by role

Easy to integrate with fabric

Do you remember the starting point? Internally does fab -R web www.deploy

few good reasons Easy, Fast, Robust

few good reasons Easy, Fast, Robust Warning: an attacker can easier get your instances IPs (use an unguessable DNS zone name)

Thank you www.spreaker.com/marco @pracucci

Add a comment

Related presentations

Related pages

Continuous Deployment at Spreaker - Technology

Continuous Deployment at Spreaker Jun 15, 2015 Technology marco-pracucci. System is processing data Please download to view 1
Read more

Continuous deployment - Technology - documents.mx

Continuous Deployment also forces you to do many right things: repeatable builds; ... Continuous Deployment at Spreaker Continuous Deployment (Lithuanian)
Read more

ResilienceMN - Spreaker

ResilienceMN - The MN National ... After a decade plus of continuous war, ... Spreaker Studio for Desktop; Spreaker Studio for Mobile; For Listeners:
Read more

Create Your Own Online Radio Show with Spreaker @spreaker ...

Create Your Own Online Radio Show with Spreaker @spreaker #Crowdify #Tools - Teresa Te Last Update: ... Continuous Deployment at Spreaker from Marco Pracucci.
Read more

Marco Pracucci

Continuous Deployment at Spreaker. Running a Lean Startup with AWS. Privacy Policy GitHub Twitter ...
Read more

Marco Pracucci on Frontend.is - Listen to everyone, follow ...

Continuous Deployment at Spreaker 1726 views Oct 2014 Running a Lean Startup with AWS - Spreaker Case Study 1079 views Oct 2012 ...
Read more

PurePerformance - Spreaker

PurePerformance - The brutal truth ... With more rapid deployment models made possible through continuous delivery and a mentality shift sparked by DevOps ...
Read more

Continuous Deployment at Etsy — TimesOpen NYC

Principles and practices in Continuous Deployment at Etsy. Presented by Mike Brittain at TimesOpen (nytimes) on July 22, 2014
Read more