SlideShare une entreprise Scribd logo
1  sur  21
Live Podcasting on AWS




                          marco pracucci
                       Follow me on Twitter @pracucci



giovedì 8 marzo 2012
Why AWS



                           Scalability
                         Handle peaks smoothly
                       and keep focus on business




giovedì 8 marzo 2012
AWS Usage
                                      The slide of acronyms




          EC2          Servers   web, api, db, streaming, ...   20 - 30 instances




giovedì 8 marzo 2012
AWS Usage
                                      The slide of acronyms




          EC2          Servers   web, api, db, streaming, ...   20 - 30 instances

          ELB          Balance HTTP traffic                          3 ELB




giovedì 8 marzo 2012
AWS Usage
                                      The slide of acronyms




          EC2          Servers   web, api, db, streaming, ...             20 - 30 instances

          ELB          Balance HTTP traffic                                    3 ELB

          EBS          Dynamic data storage              pg, mongo, ...       500 GB




giovedì 8 marzo 2012
AWS Usage
                                      The slide of acronyms




          EC2          Servers   web, api, db, streaming, ...             20 - 30 instances

          ELB          Balance HTTP traffic                                    3 ELB

          EBS          Dynamic data storage              pg, mongo, ...       500 GB

          S3           Static data storage          mp3, images, ...           15 TB




giovedì 8 marzo 2012
AWS Usage
                                      The slide of acronyms




          EC2          Servers   web, api, db, streaming, ...             20 - 30 instances

          ELB          Balance HTTP traffic                                    3 ELB

          EBS          Dynamic data storage              pg, mongo, ...       500 GB

          S3           Static data storage          mp3, images, ...           15 TB

          CF           Static data CDN                                    50M req / month




giovedì 8 marzo 2012
AWS Usage
                                      The slide of acronyms




          EC2          Servers   web, api, db, streaming, ...             20 - 30 instances

          ELB          Balance HTTP traffic                                    3 ELB

          EBS          Dynamic data storage              pg, mongo, ...       500 GB

          S3           Static data storage          mp3, images, ...           15 TB

          CF           Static data CDN                                    50M req / month

          R53          Authoritative DNS                                  15M req / month




giovedì 8 marzo 2012
Scaling Spreaker
                          with AWS
                          a real day example




giovedì 8 marzo 2012
giovedì 8 marzo 2012
                                         Requests / sec




                                0
                                    40
                                           80
                                                  120
                                                          160
                                                                200
                       00:0
                            0
                       01:0
                            0
                       02:0
                            0
                       03:0
                            0
                       04:0
                            0
                       05:0
                            0
                       06:0
                            0
                       07:0
                            0
                       08:0
                            0
                       09:0
                            0
                       10:0
                            0
                       11:0
                            0
                       12:0
                            0
                       13:0
                            0
                       14:0
                            0
                                                                      Scaling Spreaker




                       15:0
                            0
                       16:0
                            0
                       17:0
                            0
                                                                                         The ideal traffic




                       18:0
                            0
                       19:0
                            0
                       20:0
                            0
                       21:0
                            0
                       22:0
                            0
                       23:0
                            0
giovedì 8 marzo 2012
                                         Requests / sec




                                0
                                    70
                                           140
                                                  210
                                                          280
                                                                350
                       00:0
                            0
                       01:0
                            0
                       02:0
                            0
                       03:0
                            0
                       04:0
                            0
                       05:0
                            0
                       06:0
                            0
                       07:0
                            0
                       08:0
                            0
                       09:0
                            0
                       10:0
                            0
                       11:0
                            0
                       12:0
                            0
                       13:0
                            0
                       14:0
                            0
                                                                      Scaling Spreaker




                       15:0
                            0
                       16:0
                            0
                       17:0
                            0
                       18:0
                            0
                       19:0
                            0
                       20:0
                            0
                                                                                         The almost real traffic




                       21:0
                            0
                       22:0
                            0
                       23:0
                            0
giovedì 8 marzo 2012
                                         Requests / sec




                                0
                                    70
                                           140
                                                  210
                                                          280
                                                                                350
                       00:0
                            0
                       01:0
                            0
                       02:0
                            0
                       03:0
                            0
                       04:0
                            0
                       05:0
                            0
                       06:0
                            0
                       07:0
                            0
                       08:0
                            0
                       09:0
                            0
                       10:0
                            0
                       11:0
                            0
                       12:0
                            0
                       13:0
                            0
                       14:0
                            0
                                                                                      Scaling Spreaker




                       15:0
                            0
                       16:0
                                                                Unpredictable




                            0
                       17:0
                            0
                                                                                                         The real traffic




                       18:0
                            0
                       19:0
                            0
                       20:0
                            0
                       21:0
                            0
                       22:0
                            0
                       23:0
                            0
Requirements
                                     Scaling Spreaker




             Fast                                 Automatized
             New instances up and                 No human intervention
             running in less then 5 mins




giovedì 8 marzo 2012
Auto-Scaling
                         Scaling Spreaker




             TRACK                          UP / DOWN
                          ANALYZE
             METRICS                          SCALE




giovedì 8 marzo 2012
Auto-Scaling
                           Scaling Spreaker




             TRACK                             UP / DOWN
                            ANALYZE
             METRICS                             SCALE
     Zenoss + Logstash         Skynet         Spreaker + EC2 API




giovedì 8 marzo 2012
Auto-Scaling
                           Scaling Spreaker




             TRACK                             UP / DOWN
                            ANALYZE
             METRICS                             SCALE
     Zenoss + Logstash         Skynet         Spreaker + EC2 API



                         {
                         You can also use
                           CloudWatch

giovedì 8 marzo 2012
Auto-Scaling
                                    Scaling Spreaker



                       1. Split the infrastructure into roles


                                    web
                                              streaming

                                  api




giovedì 8 marzo 2012
Auto-Scaling
                                         Scaling Spreaker



                          1. Split the infrastructure into roles

                                                              db-master
                                         web
                       gearman
                                                   streaming
                                                                          db-slave
                          redis
                                       api
                                                  recording         search

                         memcache
                                             encoder
                                                              mongo
                                    web worker



giovedì 8 marzo 2012
Auto-Scaling
                                         Scaling Spreaker



                       2. Assign roles to each instance (using EC2 tags)


                            Instance 1    Instance 2        Instance 3

                              web            web            streaming
                              api            api




giovedì 8 marzo 2012
Auto-Scaling
                                 Scaling Spreaker



                       3. Start roles at instance boot


                             a script fetch roles,
                          install code (latest build),
                         configure and start services




giovedì 8 marzo 2012
Auto-Scaling
                                  Scaling Spreaker



                           4. Ready to auto-scale


                           To add another web server,
                       turn on a new instance with web role




giovedì 8 marzo 2012

Contenu connexe

Plus de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Dernier

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Dernier (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Spreaker - Live Podcasting on AWS - AWS Case Study

  • 1. Live Podcasting on AWS marco pracucci Follow me on Twitter @pracucci giovedì 8 marzo 2012
  • 2. Why AWS Scalability Handle peaks smoothly and keep focus on business giovedì 8 marzo 2012
  • 3. AWS Usage The slide of acronyms EC2 Servers web, api, db, streaming, ... 20 - 30 instances giovedì 8 marzo 2012
  • 4. AWS Usage The slide of acronyms EC2 Servers web, api, db, streaming, ... 20 - 30 instances ELB Balance HTTP traffic 3 ELB giovedì 8 marzo 2012
  • 5. AWS Usage The slide of acronyms EC2 Servers web, api, db, streaming, ... 20 - 30 instances ELB Balance HTTP traffic 3 ELB EBS Dynamic data storage pg, mongo, ... 500 GB giovedì 8 marzo 2012
  • 6. AWS Usage The slide of acronyms EC2 Servers web, api, db, streaming, ... 20 - 30 instances ELB Balance HTTP traffic 3 ELB EBS Dynamic data storage pg, mongo, ... 500 GB S3 Static data storage mp3, images, ... 15 TB giovedì 8 marzo 2012
  • 7. AWS Usage The slide of acronyms EC2 Servers web, api, db, streaming, ... 20 - 30 instances ELB Balance HTTP traffic 3 ELB EBS Dynamic data storage pg, mongo, ... 500 GB S3 Static data storage mp3, images, ... 15 TB CF Static data CDN 50M req / month giovedì 8 marzo 2012
  • 8. AWS Usage The slide of acronyms EC2 Servers web, api, db, streaming, ... 20 - 30 instances ELB Balance HTTP traffic 3 ELB EBS Dynamic data storage pg, mongo, ... 500 GB S3 Static data storage mp3, images, ... 15 TB CF Static data CDN 50M req / month R53 Authoritative DNS 15M req / month giovedì 8 marzo 2012
  • 9. Scaling Spreaker with AWS a real day example giovedì 8 marzo 2012
  • 10. giovedì 8 marzo 2012 Requests / sec 0 40 80 120 160 200 00:0 0 01:0 0 02:0 0 03:0 0 04:0 0 05:0 0 06:0 0 07:0 0 08:0 0 09:0 0 10:0 0 11:0 0 12:0 0 13:0 0 14:0 0 Scaling Spreaker 15:0 0 16:0 0 17:0 0 The ideal traffic 18:0 0 19:0 0 20:0 0 21:0 0 22:0 0 23:0 0
  • 11. giovedì 8 marzo 2012 Requests / sec 0 70 140 210 280 350 00:0 0 01:0 0 02:0 0 03:0 0 04:0 0 05:0 0 06:0 0 07:0 0 08:0 0 09:0 0 10:0 0 11:0 0 12:0 0 13:0 0 14:0 0 Scaling Spreaker 15:0 0 16:0 0 17:0 0 18:0 0 19:0 0 20:0 0 The almost real traffic 21:0 0 22:0 0 23:0 0
  • 12. giovedì 8 marzo 2012 Requests / sec 0 70 140 210 280 350 00:0 0 01:0 0 02:0 0 03:0 0 04:0 0 05:0 0 06:0 0 07:0 0 08:0 0 09:0 0 10:0 0 11:0 0 12:0 0 13:0 0 14:0 0 Scaling Spreaker 15:0 0 16:0 Unpredictable 0 17:0 0 The real traffic 18:0 0 19:0 0 20:0 0 21:0 0 22:0 0 23:0 0
  • 13. Requirements Scaling Spreaker Fast Automatized New instances up and No human intervention running in less then 5 mins giovedì 8 marzo 2012
  • 14. Auto-Scaling Scaling Spreaker TRACK UP / DOWN ANALYZE METRICS SCALE giovedì 8 marzo 2012
  • 15. Auto-Scaling Scaling Spreaker TRACK UP / DOWN ANALYZE METRICS SCALE Zenoss + Logstash Skynet Spreaker + EC2 API giovedì 8 marzo 2012
  • 16. Auto-Scaling Scaling Spreaker TRACK UP / DOWN ANALYZE METRICS SCALE Zenoss + Logstash Skynet Spreaker + EC2 API { You can also use CloudWatch giovedì 8 marzo 2012
  • 17. Auto-Scaling Scaling Spreaker 1. Split the infrastructure into roles web streaming api giovedì 8 marzo 2012
  • 18. Auto-Scaling Scaling Spreaker 1. Split the infrastructure into roles db-master web gearman streaming db-slave redis api recording search memcache encoder mongo web worker giovedì 8 marzo 2012
  • 19. Auto-Scaling Scaling Spreaker 2. Assign roles to each instance (using EC2 tags) Instance 1 Instance 2 Instance 3 web web streaming api api giovedì 8 marzo 2012
  • 20. Auto-Scaling Scaling Spreaker 3. Start roles at instance boot a script fetch roles, install code (latest build), configure and start services giovedì 8 marzo 2012
  • 21. Auto-Scaling Scaling Spreaker 4. Ready to auto-scale To add another web server, turn on a new instance with web role giovedì 8 marzo 2012