1 / 21

Scale Fail or, how I learned to stop worrying and love the downtime

Scale Fail or, how I learned to stop worrying and love the downtime. Downtime is Sexy. 1. Be Trendy. Resource Monitoring Performance Testing Traffic Monitoring Load Testing Tuning Analysis. Let History Be Your Guide. Was database to slow last time? The database is too slow this time.

rogerstony
Download Presentation

Scale Fail or, how I learned to stop worrying and love the downtime

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Scale Failor, how I learned to stop worryingand love the downtime

  2. DowntimeisSexy

  3. 1. Be Trendy

  4. Resource MonitoringPerformance TestingTraffic MonitoringLoad TestingTuning Analysis

  5. Let History Be Your Guide • Was database to slow last time? • The database is too slow this time. • Did the network cards fry last time? • They're frying this time. • Did Apache choke on memory leaks last time? • It's Apache this time. • Fixed things by using queues at your last job? • Then fix them with queues at this job!

  6. Barn Door Troubleshooting

  7. Parallel Programming NOT SEXY

  8. Don'tWorryAboutItProgram-ming SEXY

  9. How to Single-ThreadYour Code • Locks, Locks, Locks! • Ignore scope and memory address space • Frequently-updated single-row table • Master Control Server process • Single Master Queue • Blocking threads which wait while checking on a remote data source

  10. The Old Way: Caching AppServer Web Server Connection Caching Pool DB AppServer Web Server Object Cache HTTP Cache Data Cache AppServer Web Server

  11. The New Way: Direct2DB Web Server DB Web Server HTTP Cache Web Server

  12. Easy to Scale • Web servers • Caches • Shared-nothing hosts • Simple App Servers For Wimps!

  13. Hard to Scale • Databases • Queues • Shared Filesystems • Web Frameworks For Real Developers!

  14. SPoF

  15. Single Point of Failure AppServer Web Server UserDB Task Manager Load Balancer Load Balancer AppServer Web Server PageDB AppServer Web Server

  16. Cascading Failure Web Server UserDB Task Manager Load Balancer Load Balancer AppServer Web Server PageDB AppServer Web Server

  17. Be Sexy: Go Down!

More Related