Scale Fail: How I Learned to Love the Downtime

356 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
356
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Scale Fail: How I Learned to Love the Downtime

  1. 1. Scale Failor, how I learned to stop worrying and love the downtime
  2. 2. Downtime is Sexy
  3. 3. 1. Be Trendy
  4. 4. NO Resource Monitoring Performance Testing Traffic Monitoring Load Testing Tuning Analysis
  5. 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? ● Theyre frying this time.● Did Apache choke on memory leaks last time? ● Its Apache this time.● Fixed things by using queues at your last job? ● Then fix them with queues at this job!
  6. 6. Barn Door Troubleshooting
  7. 7. Parallel Programming XY SE OT N
  8. 8. Dont Worry About ItProgram- X Y ming SE
  9. 9. How to Single-Thread Your 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. 10. The Old Way: Caching Connection Caching Pool App Web Server Server App Web Object CacheDB HTTP Cache Data Cache Server Server App Web Server Server
  11. 11. The New Way: Direct2DB Web Server WebDB HTTP Cache Server Web Server
  12. 12. Easy to Scale● Web servers● Caches● Shared-nothing hosts● Simple App Servers For Wimps!
  13. 13. Hard to Scale ● Databases ● Queues ● Shared Filesystems ● Web FrameworksFor Real Developers!
  14. 14. SPoF
  15. 15. Single Point of Failure App Web Server ServerUserDB Task App Load Web Load Manager Server Balancer Server BalancerPageDB App Web Server Server
  16. 16. Cascading Failure Web ServerUserDB Task App Load Web Load Manager Server Balancer Server BalancerPageDB App Web Server Server
  17. 17. Be Sexy:Go Down!

×