scaling lamp stacks

17
Scalable LAMP Stacks Jakob Heuser Alan Kasindorf OPSON Lamp Meetup Feb 2008

Upload: jakob-heuser

Post on 05-Dec-2014

5.293 views

Category:

Technology


1 download

DESCRIPTION

Presentation on Scaling LAMP stacks from the Silicon Valley LAMP Meetup Feb 28, 2008

TRANSCRIPT

Page 1: Scaling LAMP Stacks

Scalable LAMP Stacks

Jakob HeuserAlan Kasindorf

OPSON Lamp Meetup Feb 2008

Page 2: Scaling LAMP Stacks

• Jakob Heuser - Gaia OnlineEngineer, Architect

• Alan Kasindorf - Six ApartDBA, Former head of Gaia’s Operations

Page 3: Scaling LAMP Stacks

Reality: Scale Out

Page 4: Scaling LAMP Stacks

What We Had

S S

LB

WWWWWWW W W W W W W

M read

write

S S

Mread

write

Page 5: Scaling LAMP Stacks

What We Had

it’s too easy to end up like this

S S

LB

WWWWWWW W W W W W W

M read

write

S S

Mread

write

BAD

BAD

BAD

Page 6: Scaling LAMP Stacks

LAMP

• Hardware

• Package Management

Page 7: Scaling LAMP Stacks

LAMP

• Not starting a religious war

• Commodity != Cheap

Page 8: Scaling LAMP Stacks

LAMP

• Automate

• Simplify

Page 9: Scaling LAMP Stacks

LAMP

• Avoid starvation

• It doesn’t have to be Apache (shhhh)

Page 10: Scaling LAMP Stacks

Amazingly even BIGGER DB

Even BIGGER DBBigger DBLAMP

This is BadDB

Page 11: Scaling LAMP Stacks

LAMP

ShardingUsers 1-99,999

Users 100,000-199,999

Users 200,000-299,999

Users 300,000-399,999

Users 400,000-499,999

Users 1-499,999

Page 12: Scaling LAMP Stacks

LAMP

ShardingUsers 1-99,999

Users 100,000-199,999

Users 200,000-299,999

Users 300,000-399,999

Users 400,000-499,999

Users 1-499,999

DB 1

DB 2

Page 13: Scaling LAMP Stacks

LAMP

ShardingUsers 1-99,999

Users 100,000-199,999

Users 200,000-299,999

Users 300,000-399,999

Users 400,000-499,999

Users 1-499,999

DB 1

DB 2

DB 3

Page 14: Scaling LAMP Stacks

LAMP

• Caching

• Replication

• Fuzz testing

Page 15: Scaling LAMP Stacks

LAMP

• Pick a framework

• Avoid DB Layers that depend on “join”

Page 16: Scaling LAMP Stacks

Outside the Stack

• OSS for anything

• Pay services too

Page 17: Scaling LAMP Stacks

?