Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

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

Let History Be Your Guide

Was database to slow last time?

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!

Did the network cards fry last time?

Did Apache choke on memory leaks last time?

Fixed things by using queues at your last job?

Barn Door Troubleshooting

Parallel Programming

T O N

Y X E S

Don't Worry About It Programming

Y X E S

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

The Old Way: Caching


Connection Caching Pool
App Server Web Server

App Server

Web Server

HTTP Cache

Data Cache

DB

Object Cache

App Server

Web Server

The New Way: Direct2DB


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

For Real Developers!

SPoF

Single Point of Failure


App Server Web Server

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!

You might also like