Professional Documents
Culture Documents
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
Scale Fail
Downtime is Sexy
1. Be Trendy
NO
Resource Monitoring Performance Testing Traffic Monitoring Load Testing Tuning Analysis
The database is too slow this time. They're frying this time. It's Apache this time. Then fix them with queues at this job!
Parallel Programming
T O N
Y X E S
Y X E S
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
App Server
Web Server
HTTP Cache
Data Cache
DB
Object Cache
App Server
Web Server
Web Server
HTTP Cache
DB
Web Server
Easy to Scale
Web servers Caches Shared-nothing hosts Simple App Servers
For Wimps!
Hard to Scale
Databases Queues Shared Filesystems Web Frameworks
SPoF
UserDB
Task Manager App Server Load Balancer Web Server Load Balancer
PageDB
App Server Web Server
Cascading Failure
Web Server
UserDB
Task Manager App Server Load Balancer Web Server Load Balancer
PageDB
App Server Web Server
Be Sexy:
Go Down!