SlideShare a Scribd company logo
Tuesday, April 24, 2012
Tuesday, April 24, 2012
Tuesday, April 24, 2012
Tuesday, April 24, 2012
Angry Birds Shop
                          Cloud Deployment
                                    Presented by
                                    Kian T. Gould and Daniel Pötzinger




Tuesday, April 24, 2012
Tuesday, April 24, 2012
Tuesday, April 24, 2012
Irregular Traffic Behaviour




Tuesday, April 24, 2012
The Angry Birds Magento Universe
                          Magento Store                                     DRM Server


                              Storefronts       Reporting

                              Products +                               Mail Service
                                                Ordermgmt
                          Warehouse Inventory



                                                                     Giftcards

                          Shipwire
                          Manage Warehouse      Fullfillment   Braintree




Tuesday, April 24, 2012
Angrybirds Magento Universe
                                             Sh ipw   ire
                          Magento Store                        bal
                                                                                        DRM Server

                                                      ges  glo
                                             M  ana
                                                            es &
                             Storefronts      Reporting

                                              wa  reh   ous
                              Products +                                           Mail Service
                                             Ordermgmt
                          Warehouse Invetory
                                               inv ent  ory
                                                                ay  for
                                                  ind   be st w
                                                F                    ent         Giftcards

                                                        rF ullf illm
                          Shipwire               o rde
                          Manage Warehouse   Fullfillment                  Braintree




Tuesday, April 24, 2012
Why Amazon Cloud ?


Tuesday, April 24, 2012
✓ Scales quickly on demand
                          ✓ Pay only what you need




Tuesday, April 24, 2012
Powerfull AWS Services


                          EC2   S3         RDS      Cloud     Elastic   ELB   R53
                                                    Front     Cache



                                     Amazon Webservices & Amazon Console




                                              Rightscale Services



Tuesday, April 24, 2012
Cloud Drawbacks?

                           Complexity                Plan for EC2 Failover


                                                        Need to adjust
                          Plan Security
                                                         Application


                                          Lack of Service



Tuesday, April 24, 2012
Cloud Drawbacks? ture               Req uirem ents
                                  Arch itec                          over
                                                              le Fail
                                                           ultip
                                            ailab ility (M
                                  H igh av            cing)
                                               balan
                           Complexity
                                  and   Load
                                                         Bac kend Plan for EC2 Failover
                                                      in
                                             to Adm m Shop-Fro         ntend
                                   M  agen
                                            ende  nt fro
                                    indep                depen  dent
                                           ient a nd in         nage  ment
                                     Effic        nd tas  k ma
                                     back   grou                         Need to adjust
                          Plan Security                ching
                                       In tensi ve Ca                     Application
                                                                   n the cloud
                                                      agem   ent i
                                        Asse   t man

                                           Lack of Service



Tuesday, April 24, 2012
Tuesday, April 24, 2012
Our Cloud Architecture




Tuesday, April 24, 2012
Tuesday, April 24, 2012
Architecture
                                                                  ELB         R53      Cloud Front
                                                                              DNS        CDN for Skin


                          Cloud Front             S3                                Autoscaling
                           CDN for Assets    Assets Storage   Varnish Array



                                            Frontend Array    Backend Array         Worker Array
                                              Autoscaling
                                              FE FE FE




                                                                  RDS
                                                                  mySQL
                          Elastic Cache         S3
                           Cache Backend      Deployment




Tuesday, April 24, 2012
Scaling is about finding
                                    the Bottleneck




Tuesday, April 24, 2012
Scaling and Tuning

                      Bottleneck   Varnish     Load
                                             Varnish Varnish
                                                                   Cloud
                                   Array     Balancing             Front
                      Bandwidth


                      Bottleneck   Frontend Array             FE FE FE FE FE FE
                                                        FE FE FE FE FE FE FE
                      CPU          Autoscaling                FE FE FE FE FE FE



                      Bottleneck
                      Database     RDS       Elastic Cache
                                   mySQL       Cache Backend




Tuesday, April 24, 2012
Image Caching
                                            Frontend       Frontend             Backend

                                                Image
                          Cloud Front           resized?
                           CDN for Assets
                                                            Read and save
                                                            resized images



                                                                             Upload new original
                                S3                                           images to S3
                           Assets Storage




Tuesday, April 24, 2012
The 6 secrets of caching
                          1. achieve a high hit rate
                          2. don‘t flood your cache
                          3. choose your cache backends wisely
                          4. never loose all cache at once
                          5. clean up old cache entries
                          6. be able to clean/refresh on demand




Tuesday, April 24, 2012
Magento Performance Pointers
                          1. Asyncronous Cache Clearing Queue (Aoe_AsyncCache)
                          2. Take care of Cache Cleaning (Aoe_CacheCleaner)
                          3. Disable Magento Logs
                          4. Make page cacheable in Varnish (Aoe_Static)
                          5. Prefix bundeled JS and CSS with timestamp
                          6. and... Profile, Profile, Profile:
                             •xdebug + kcachegrind
                             •Newrelic
                             •xhprof

Tuesday, April 24, 2012
Magento Cloud-Adjustments
                          1. Compress Javascript + CSS on deploy time
                          2. Use Deployment Name as Cache prefix
                          3. Cache Warmup Script as part of Deployment
                          4. Health Check for Loadbalancer
                          5. Automatic Varnish Purging
                          6. Use E-Mail Service
                          7. Establish Asset handling



Tuesday, April 24, 2012
Tuesday, April 24, 2012
Lessons learned
                          1. 404s are too expensive
                             => cache or redirect
                          2. Cloudfront with S3 backend
                          cannot handle gzip
                             => deploy time bundeling/compression

                          3. Don‘t hit „Reports“ in the backend :-)
                          4.You cannot forsee everything
                             => But you can be prepared to fix things quickly
                             => continuous    deployment




Tuesday, April 24, 2012
Tuesday, April 24, 2012
Continuous
                          Deployment



Tuesday, April 24, 2012
Tuesday, April 24, 2012
Don‘t be scared of
               releasing to
               production




Tuesday, April 24, 2012
Definition of Continuous Deployment


                          We want on-demand deployment
                          of tested features and fixes
                          in a quick and reliable way



Tuesday, April 24, 2012
You can achieve this by

                          Automating everything
                            Build
                                    Testing
                                              Deployment

Tuesday, April 24, 2012
..and

                          doing it frequently



Tuesday, April 24, 2012
Tuesday, April 24, 2012
The Deployment
                          Pipeline




Tuesday, April 24, 2012
Tuesday, April 24, 2012
Angry Birds Deployment Pipeline
                                       Backup
                            SVN
                                       Storage



                           Commit                        Install on      Selenium        Performance
                                      Unit Tests
                          and Build                       „latest“    Acceptance Tests      Tests




                                         Build Downstream and Test Strategy


                                                   Feedback to Developers




Tuesday, April 24, 2012
Magento Installation Package
                                               ‣ htdocs [Magento Source]
                                               ‣ media maintenance mode
                          ‣ Filesystem               1.set
                                               ‣ .modman [Custom Packages]
                                                     2.Delta Package prepare
                          ‣ Database           ‣ changelog.txt
                                                     3.apply Database
                          ‣ Install Binaries         4.sync files
                                                     5.run modman deploy-all
                          ‣ settings.php             6.adjust Settings
                                                     7.Post install:
                                                       fix p. / cache clean / ...




Tuesday, April 24, 2012
Angry Birds Deployment Pipeline




                           Install on                   Cloud     Integration     Cloud
                          Deployment    Copy to S3   Deployment      Tests      deployment
                            System                     Staging    AOE + Rovio   production




Tuesday, April 24, 2012
Cloud Deployment
                                                                   R53
                  Deployment „Version 88“                          DNS      Deployment „Version 89“


                                       Varnish Array                        Start new Varnish Array by
                                                                                       release
                          ELB              V   V   V                          ELB          V V V
                                                                            ✓ cloning old deployment
                                                                            ✓ adjusting release number
                            Autoscaling        Backend    Worker               Autoscaling    Backend    Worker
                          Frontend Array        Array      Array             Frontend Array    Array      Array
                            FE FE FE           BE BE BE    W                   FE FE FE       BE BE BE     W



                                                                    RDS
                                                                    mySQL
                                                                                                  S3


Tuesday, April 24, 2012
Tuesday, April 24, 2012
The real life




Tuesday, April 24, 2012
Tuesday, April 24, 2012
Day 1 - Release 1




Tuesday, April 24, 2012
Day 2 - Release 2 - „get ready for Space“




Tuesday, April 24, 2012
Day 3 - „People want it so badly“

                                                          USA wakes up
                                        Space game
                                        launched
                                        Array scales up
                          New release
                          deployed




Tuesday, April 24, 2012
Day 4 - Release 3 „Performance Improvement“

                          40% average
                          CPU usage.

                          1-2 FE Servers
                          are enough




Tuesday, April 24, 2012
Tuesday, April 24, 2012
Thank you

                                      Follow us on Twitter:

                                      AOE:      @aoemedia
                                      Daniel P: @typo3media

Tuesday, April 24, 2012

More Related Content

PPTX
Scalable Resilient Web Services In .Net
KEY
MetaCDN: Enabling High Performance, Low Cost Content Storage and Delivery via...
KEY
Cloud Computing & Scaling Web Apps
PPT
Ram chinta hug-20120922-v1
PDF
14h00 aws deck-summit2012_sap_on_aws_s_jones_final
PDF
Amazon Dynamo DB 활용하기 - 강민석 :: AWS Database Modernization Day 온라인
PDF
Build an Infra Product with AWS Fargate
PDF
Cloud Computing for Developers and Architects - QCon 2008 Tutorial
Scalable Resilient Web Services In .Net
MetaCDN: Enabling High Performance, Low Cost Content Storage and Delivery via...
Cloud Computing & Scaling Web Apps
Ram chinta hug-20120922-v1
14h00 aws deck-summit2012_sap_on_aws_s_jones_final
Amazon Dynamo DB 활용하기 - 강민석 :: AWS Database Modernization Day 온라인
Build an Infra Product with AWS Fargate
Cloud Computing for Developers and Architects - QCon 2008 Tutorial

What's hot (15)

PDF
Leverage Azure and SQL Azure to build SaaS applications
PDF
Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
PDF
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
PPTX
Turbocharging php applications with zend server
PDF
Netflix keynote-adrian-qcon
KEY
SDEC2011 Big engineer vs small entreprenuer
PDF
Developing polyglot applications on Cloud Foundry (#oredev 2012)
PDF
20191126 AWS Black Belt Online Seminar Amazon AppStream 2.0
PPTX
Windows Azure Design Patterns
PPTX
Leveraging the azure cloud for your mobile apps
PPTX
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
PDF
Decomposing applications for scalability and deployability - svcc sv_code_ca...
PPTX
Hecatonchire kvm forum_2012_benoit_hudzia
PDF
Enhancing Live Migration Process for CPU and/or memory intensive VMs running...
PDF
Turbocharging php applications with zend server (workshop)
Leverage Azure and SQL Azure to build SaaS applications
Tricks And Tradeoffs Of Deploying My Sql Clusters In The Cloud
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
Turbocharging php applications with zend server
Netflix keynote-adrian-qcon
SDEC2011 Big engineer vs small entreprenuer
Developing polyglot applications on Cloud Foundry (#oredev 2012)
20191126 AWS Black Belt Online Seminar Amazon AppStream 2.0
Windows Azure Design Patterns
Leveraging the azure cloud for your mobile apps
[.Net Juniors Academy] Introdução ao Cloud Computing e Windows Azure Platform
Decomposing applications for scalability and deployability - svcc sv_code_ca...
Hecatonchire kvm forum_2012_benoit_hudzia
Enhancing Live Migration Process for CPU and/or memory intensive VMs running...
Turbocharging php applications with zend server (workshop)
Ad

Viewers also liked (16)

PDF
Scale your Magento app with Elastic Beanstalk
PDF
High-Performance Magento in the Cloud
PDF
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
 
PDF
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
PDF
Boost Magento perfomance with Queues
PDF
Proactive Cost Management for AWS Cloud
PDF
Microservices and elastic resource pools with Amazon EC2 Container Service
PDF
Continuous Development and Deployment: Workflows and Patterns
PDF
Redundancy Rocks. Redundancy Rocks.
PDF
Immutable Deployments with AWS CloudFormation and AWS Lambda
PDF
Accenture Interactive Boutique
PDF
Surprising failure factors when implementing eCommerce and Omnichannel eBusiness
PDF
Magento scalability from the trenches (Meet Magento Sweden 2016)
PDF
Omnichannel Customer Experience
PDF
ECS for Docker Meetup #4
PDF
Multithreaded XML Import (San Francisco Magento Meetup)
 
Scale your Magento app with Elastic Beanstalk
High-Performance Magento in the Cloud
Magento Imagine 2013: Fabrizio Branca - Learning To Fly: How Angry Birds Reac...
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Boost Magento perfomance with Queues
Proactive Cost Management for AWS Cloud
Microservices and elastic resource pools with Amazon EC2 Container Service
Continuous Development and Deployment: Workflows and Patterns
Redundancy Rocks. Redundancy Rocks.
Immutable Deployments with AWS CloudFormation and AWS Lambda
Accenture Interactive Boutique
Surprising failure factors when implementing eCommerce and Omnichannel eBusiness
Magento scalability from the trenches (Meet Magento Sweden 2016)
Omnichannel Customer Experience
ECS for Docker Meetup #4
Multithreaded XML Import (San Francisco Magento Meetup)
 
Ad

Similar to Angrybirds Magento Cloud Deployment (20)

PPTX
Cloud computing with AWS
PDF
An enterprise journey in the Cloud
PDF
Amazon web services : "How Does Cloud Computing Change the Business Model for...
PDF
201004 itl cloud_computing
PDF
The Cloud, The Enterprise Architect and the CIO
PPTX
Ca today here and_now_martin_vajda
PDF
Kuliza's ZaCloud
PDF
iCepts Technology Group Brochure
PPT
Virtualisation with service management as enabler for cloud computing - Kingd...
PPTX
IBM Smarter Business 2012 - Du behöver inte sikta mot stjärnorna för att komm...
PDF
Cloud File System and Cloud Data Management Interface (CDMI)
PDF
Software Developer Conference 2012 - Paper Presentation - Cloud File Systems
PDF
Mdawson product strategy preso geek girls 12 7-12 sanitized
PDF
Be Prepared for Tomorrow's IT Forecast: Great Chance of Hybrid Clouds
PDF
Be Prepared for Tomorrow's IT Forecast Great Chance of Hybrid Clouds
PPTX
Splunk Overview
PDF
Managing a public cloud
PPTX
CloudStack Collaboration Conference 12; Refactoring cloud stack
PDF
CloudStack Hyderabad Meetup: Migrating applications to IaaS clouds
Cloud computing with AWS
An enterprise journey in the Cloud
Amazon web services : "How Does Cloud Computing Change the Business Model for...
201004 itl cloud_computing
The Cloud, The Enterprise Architect and the CIO
Ca today here and_now_martin_vajda
Kuliza's ZaCloud
iCepts Technology Group Brochure
Virtualisation with service management as enabler for cloud computing - Kingd...
IBM Smarter Business 2012 - Du behöver inte sikta mot stjärnorna för att komm...
Cloud File System and Cloud Data Management Interface (CDMI)
Software Developer Conference 2012 - Paper Presentation - Cloud File Systems
Mdawson product strategy preso geek girls 12 7-12 sanitized
Be Prepared for Tomorrow's IT Forecast: Great Chance of Hybrid Clouds
Be Prepared for Tomorrow's IT Forecast Great Chance of Hybrid Clouds
Splunk Overview
Managing a public cloud
CloudStack Collaboration Conference 12; Refactoring cloud stack
CloudStack Hyderabad Meetup: Migrating applications to IaaS clouds

More from AOE (20)

PDF
rock-solid TYPO3 development with continuous integration and deployment
 
PDF
Agile Management - Best Practice Day der Deutschen Bahn am 17.10.2013
 
PDF
Continuous Quality Assurance using Selenium WebDriver
 
PDF
SONY on TYPO3 - Rapid Global CMS Deployment
 
PDF
The typo3.org Relaunch Project
 
PDF
Cloud Deployment und (Auto)Scaling am Beispiel von Angrybird
 
PDF
Searchperience Indexierungspipeline
 
PDF
High Performance Multi-Server Magento in der Cloud
 
PDF
Selenium 2 for PHP(Unit)
 
PDF
T3DD12 Caching with Varnish
 
PDF
T3DD12 community extension
 
PDF
Performance measurement and tuning
 
PDF
Domain Driven Design
 
PDF
Debugging, Monitoring and Profiling in TYPO3
 
PDF
Panasonic search
 
PDF
Performance durch Caching
 
PDF
Performance durch Caching
 
PPT
Open Source CMS TYPO3 at Cisco WebEx
 
PDF
Case Study NDD Distribution on TYPO3
 
PDF
Monier Enterprise Web CMS Global Relaunch
 
rock-solid TYPO3 development with continuous integration and deployment
 
Agile Management - Best Practice Day der Deutschen Bahn am 17.10.2013
 
Continuous Quality Assurance using Selenium WebDriver
 
SONY on TYPO3 - Rapid Global CMS Deployment
 
The typo3.org Relaunch Project
 
Cloud Deployment und (Auto)Scaling am Beispiel von Angrybird
 
Searchperience Indexierungspipeline
 
High Performance Multi-Server Magento in der Cloud
 
Selenium 2 for PHP(Unit)
 
T3DD12 Caching with Varnish
 
T3DD12 community extension
 
Performance measurement and tuning
 
Domain Driven Design
 
Debugging, Monitoring and Profiling in TYPO3
 
Panasonic search
 
Performance durch Caching
 
Performance durch Caching
 
Open Source CMS TYPO3 at Cisco WebEx
 
Case Study NDD Distribution on TYPO3
 
Monier Enterprise Web CMS Global Relaunch
 

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Empathic Computing: Creating Shared Understanding
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology
Encapsulation_ Review paper, used for researhc scholars
Programs and apps: productivity, graphics, security and other tools
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
The AUB Centre for AI in Media Proposal.docx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The Rise and Fall of 3GPP – Time for a Sabbatical?
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

Angrybirds Magento Cloud Deployment

  • 5. Angry Birds Shop Cloud Deployment Presented by Kian T. Gould and Daniel Pötzinger Tuesday, April 24, 2012
  • 9. The Angry Birds Magento Universe Magento Store DRM Server Storefronts Reporting Products + Mail Service Ordermgmt Warehouse Inventory Giftcards Shipwire Manage Warehouse Fullfillment Braintree Tuesday, April 24, 2012
  • 10. Angrybirds Magento Universe Sh ipw ire Magento Store bal DRM Server ges glo M ana es & Storefronts Reporting wa reh ous Products + Mail Service Ordermgmt Warehouse Invetory inv ent ory ay for ind be st w F ent Giftcards rF ullf illm Shipwire o rde Manage Warehouse Fullfillment Braintree Tuesday, April 24, 2012
  • 11. Why Amazon Cloud ? Tuesday, April 24, 2012
  • 12. ✓ Scales quickly on demand ✓ Pay only what you need Tuesday, April 24, 2012
  • 13. Powerfull AWS Services EC2 S3 RDS Cloud Elastic ELB R53 Front Cache Amazon Webservices & Amazon Console Rightscale Services Tuesday, April 24, 2012
  • 14. Cloud Drawbacks? Complexity Plan for EC2 Failover Need to adjust Plan Security Application Lack of Service Tuesday, April 24, 2012
  • 15. Cloud Drawbacks? ture Req uirem ents Arch itec over le Fail ultip ailab ility (M H igh av cing) balan Complexity and Load Bac kend Plan for EC2 Failover in to Adm m Shop-Fro ntend M agen ende nt fro indep depen dent ient a nd in nage ment Effic nd tas k ma back grou Need to adjust Plan Security ching In tensi ve Ca Application n the cloud agem ent i Asse t man Lack of Service Tuesday, April 24, 2012
  • 19. Architecture ELB R53 Cloud Front DNS CDN for Skin Cloud Front S3 Autoscaling CDN for Assets Assets Storage Varnish Array Frontend Array Backend Array Worker Array Autoscaling FE FE FE RDS mySQL Elastic Cache S3 Cache Backend Deployment Tuesday, April 24, 2012
  • 20. Scaling is about finding the Bottleneck Tuesday, April 24, 2012
  • 21. Scaling and Tuning Bottleneck Varnish Load Varnish Varnish Cloud Array Balancing Front Bandwidth Bottleneck Frontend Array FE FE FE FE FE FE FE FE FE FE FE FE FE CPU Autoscaling FE FE FE FE FE FE Bottleneck Database RDS Elastic Cache mySQL Cache Backend Tuesday, April 24, 2012
  • 22. Image Caching Frontend Frontend Backend Image Cloud Front resized? CDN for Assets Read and save resized images Upload new original S3 images to S3 Assets Storage Tuesday, April 24, 2012
  • 23. The 6 secrets of caching 1. achieve a high hit rate 2. don‘t flood your cache 3. choose your cache backends wisely 4. never loose all cache at once 5. clean up old cache entries 6. be able to clean/refresh on demand Tuesday, April 24, 2012
  • 24. Magento Performance Pointers 1. Asyncronous Cache Clearing Queue (Aoe_AsyncCache) 2. Take care of Cache Cleaning (Aoe_CacheCleaner) 3. Disable Magento Logs 4. Make page cacheable in Varnish (Aoe_Static) 5. Prefix bundeled JS and CSS with timestamp 6. and... Profile, Profile, Profile: •xdebug + kcachegrind •Newrelic •xhprof Tuesday, April 24, 2012
  • 25. Magento Cloud-Adjustments 1. Compress Javascript + CSS on deploy time 2. Use Deployment Name as Cache prefix 3. Cache Warmup Script as part of Deployment 4. Health Check for Loadbalancer 5. Automatic Varnish Purging 6. Use E-Mail Service 7. Establish Asset handling Tuesday, April 24, 2012
  • 27. Lessons learned 1. 404s are too expensive => cache or redirect 2. Cloudfront with S3 backend cannot handle gzip => deploy time bundeling/compression 3. Don‘t hit „Reports“ in the backend :-) 4.You cannot forsee everything => But you can be prepared to fix things quickly => continuous deployment Tuesday, April 24, 2012
  • 29. Continuous Deployment Tuesday, April 24, 2012
  • 31. Don‘t be scared of releasing to production Tuesday, April 24, 2012
  • 32. Definition of Continuous Deployment We want on-demand deployment of tested features and fixes in a quick and reliable way Tuesday, April 24, 2012
  • 33. You can achieve this by Automating everything Build Testing Deployment Tuesday, April 24, 2012
  • 34. ..and doing it frequently Tuesday, April 24, 2012
  • 36. The Deployment Pipeline Tuesday, April 24, 2012
  • 38. Angry Birds Deployment Pipeline Backup SVN Storage Commit Install on Selenium Performance Unit Tests and Build „latest“ Acceptance Tests Tests Build Downstream and Test Strategy Feedback to Developers Tuesday, April 24, 2012
  • 39. Magento Installation Package ‣ htdocs [Magento Source] ‣ media maintenance mode ‣ Filesystem 1.set ‣ .modman [Custom Packages] 2.Delta Package prepare ‣ Database ‣ changelog.txt 3.apply Database ‣ Install Binaries 4.sync files 5.run modman deploy-all ‣ settings.php 6.adjust Settings 7.Post install: fix p. / cache clean / ... Tuesday, April 24, 2012
  • 40. Angry Birds Deployment Pipeline Install on Cloud Integration Cloud Deployment Copy to S3 Deployment Tests deployment System Staging AOE + Rovio production Tuesday, April 24, 2012
  • 41. Cloud Deployment R53 Deployment „Version 88“ DNS Deployment „Version 89“ Varnish Array Start new Varnish Array by release ELB V V V ELB V V V ✓ cloning old deployment ✓ adjusting release number Autoscaling Backend Worker Autoscaling Backend Worker Frontend Array Array Array Frontend Array Array Array FE FE FE BE BE BE W FE FE FE BE BE BE W RDS mySQL S3 Tuesday, April 24, 2012
  • 43. The real life Tuesday, April 24, 2012
  • 45. Day 1 - Release 1 Tuesday, April 24, 2012
  • 46. Day 2 - Release 2 - „get ready for Space“ Tuesday, April 24, 2012
  • 47. Day 3 - „People want it so badly“ USA wakes up Space game launched Array scales up New release deployed Tuesday, April 24, 2012
  • 48. Day 4 - Release 3 „Performance Improvement“ 40% average CPU usage. 1-2 FE Servers are enough Tuesday, April 24, 2012
  • 50. Thank you Follow us on Twitter: AOE: @aoemedia Daniel P: @typo3media Tuesday, April 24, 2012