Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Scale Fail or, how I learned to stop worrying and love the downtime."— Presentation transcript:

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

2

3

4 Downtime is Sexy

5 1. Be Trendy

6

7

8 Resource Monitoring Performance Testing Traffic Monitoring Load Testing Tuning Analysis

9 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!

10 Barn Door Troubleshooting

11 Parallel Programming NOT SEXY

12 Don't Worry About It Program- ming SEXY

13 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

14 The Old Way: Caching DB App Server Web Server Web Server Web Server Connection Caching Pool Data Cache Object Cache HTTP Cache

15 The New Way: Direct2DB DB Web Server Web Server Web Server HTTP Cache

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

17 Hard to Scale For Real Developers! Databases Queues Shared Filesystems Web Frameworks

18 SPoF

19 UserDB App Server Web Server Web Server Web Server PageDB Single Point of Failure Load Balancer Task Manager Load Balancer

20 UserDB App Server Web Server Web Server Web Server PageDB Cascading Failure Load Balancer Task Manager Load Balancer

21 Be Sexy: Go Down!


Download ppt "Scale Fail or, how I learned to stop worrying and love the downtime."

Similar presentations


Ads by Google