Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Live Podcasting on AWS    marco pracucciFollow me on Twitter @pracucci
Why AWS     Scalability  Handle peaks smoothlyand keep focus on business
AWS Usage                     The slide of acronymsEC2   Servers   web, api, db, streaming, ...   20 - 30 instances
AWS Usage                     The slide of acronymsEC2   Servers   web, api, db, streaming, ...   20 - 30 instancesELB   B...
AWS Usage                     The slide of acronymsEC2   Servers   web, api, db, streaming, ...         20 - 30 instancesE...
AWS Usage                     The slide of acronymsEC2   Servers   web, api, db, streaming, ...          20 - 30 instances...
AWS Usage                     The slide of acronymsEC2   Servers   web, api, db, streaming, ...          20 - 30 instances...
AWS Usage                     The slide of acronymsEC2   Servers   web, api, db, streaming, ...          20 - 30 instances...
Scaling Spreaker   with AWS   a real day example
Requests / sec         0             40                    80                           120                               ...
Requests / sec         0             70                    140                           210                              ...
Requests / sec         0             70                    140                           210                              ...
Requirements                      Scaling SpreakerFast                               AutomatizedNew instances up and      ...
Auto-Scaling            Scaling Spreaker TRACK                         UP / DOWN            ANALYZEMETRICS                ...
Auto-Scaling                      Scaling Spreaker    TRACK                                 UP / DOWN                     ...
Auto-Scaling                      Scaling Spreaker    TRACK                                 UP / DOWN                     ...
Auto-Scaling             Scaling Spreaker1. Split the infrastructure into roles             web                       stre...
Auto-Scaling                  Scaling Spreaker  1. Split the infrastructure into roles                                    ...
Auto-Scaling                  Scaling Spreaker2. Assign roles to each instance (using EC2 tags)     Instance 1    Instance...
Auto-Scaling          Scaling Spreaker3. Start roles at instance boot      a script fetch roles,   install code (latest bu...
Auto-Scaling           Scaling Spreaker    4. Ready to auto-scale    To add another web server,turn on a new instance with...
Upcoming SlideShare
Loading in …5
×

Running a Lean Startup with AWS - Spreaker Case Study

1,604 views

Published on

Published in: Technology, Business
  • Be the first to comment

Running a Lean Startup with AWS - Spreaker Case Study

  1. 1. Live Podcasting on AWS marco pracucciFollow me on Twitter @pracucci
  2. 2. Why AWS Scalability Handle peaks smoothlyand keep focus on business
  3. 3. AWS Usage The slide of acronymsEC2 Servers web, api, db, streaming, ... 20 - 30 instances
  4. 4. AWS Usage The slide of acronymsEC2 Servers web, api, db, streaming, ... 20 - 30 instancesELB Balance HTTP traffic 3 ELB
  5. 5. AWS Usage The slide of acronymsEC2 Servers web, api, db, streaming, ... 20 - 30 instancesELB Balance HTTP traffic 3 ELBEBS Dynamic data storage pg, mongo, ... 500 GB
  6. 6. AWS Usage The slide of acronymsEC2 Servers web, api, db, streaming, ... 20 - 30 instancesELB Balance HTTP traffic 3 ELBEBS Dynamic data storage pg, mongo, ... 500 GBS3 Static data storage mp3, images, ... 15 TB
  7. 7. AWS Usage The slide of acronymsEC2 Servers web, api, db, streaming, ... 20 - 30 instancesELB Balance HTTP traffic 3 ELBEBS Dynamic data storage pg, mongo, ... 500 GBS3 Static data storage mp3, images, ... 15 TBCF Static data CDN 50M req / month
  8. 8. AWS Usage The slide of acronymsEC2 Servers web, api, db, streaming, ... 20 - 30 instancesELB Balance HTTP traffic 3 ELBEBS Dynamic data storage pg, mongo, ... 500 GBS3 Static data storage mp3, images, ... 15 TBCF Static data CDN 50M req / monthR53 Authoritative DNS 15M req / month
  9. 9. Scaling Spreaker with AWS a real day example
  10. 10. Requests / sec 0 40 80 120 160 20000:0 001:0 002:0 003:0 004:0 005:0 006:0 007:0 008:0 009:0 010:0 011:0 012:0 013:0 014:0 0 Scaling Spreaker15:0 016:0 017:0 0 The ideal traffic18:0 019:0 020:0 021:0 022:0 023:0 0
  11. 11. Requests / sec 0 70 140 210 280 35000:0 001:0 002:0 003:0 004:0 005:0 006:0 007:0 008:0 009:0 010:0 011:0 012:0 013:0 014:0 0 Scaling Spreaker15:0 016:0 017:0 018:0 019:0 020:0 0 The almost real traffic21:0 022:0 023:0 0
  12. 12. Requests / sec 0 70 140 210 280 35000:0 001:0 002:0 003:0 004:0 005:0 006:0 007:0 008:0 009:0 010:0 011:0 012:0 013:0 014:0 0 Scaling Spreaker15:0 0 Unpredictable16:0 017:0 0 The real traffic18:0 019:0 020:0 021:0 022:0 023:0 0
  13. 13. Requirements Scaling SpreakerFast AutomatizedNew instances up and No human interventionrunning in less then 5 mins
  14. 14. Auto-Scaling Scaling Spreaker TRACK UP / DOWN ANALYZEMETRICS SCALE
  15. 15. Auto-Scaling Scaling Spreaker TRACK UP / DOWN ANALYZE METRICS SCALEZenoss + Logstash Skynet Spreaker + EC2 API
  16. 16. Auto-Scaling Scaling Spreaker TRACK UP / DOWN ANALYZE METRICS SCALEZenoss + Logstash Skynet Spreaker + EC2 API { You can also use CloudWatch
  17. 17. Auto-Scaling Scaling Spreaker1. Split the infrastructure into roles web streaming api
  18. 18. Auto-Scaling Scaling Spreaker 1. Split the infrastructure into roles db-master webgearman streaming db-slave redis api recording search memcache encoder mongo web worker
  19. 19. Auto-Scaling Scaling Spreaker2. Assign roles to each instance (using EC2 tags) Instance 1 Instance 2 Instance 3 web web streaming api api
  20. 20. Auto-Scaling Scaling Spreaker3. Start roles at instance boot a script fetch roles, install code (latest build), configure and start services
  21. 21. Auto-Scaling Scaling Spreaker 4. Ready to auto-scale To add another web server,turn on a new instance with web role

×