treating infrastructure as garbage

20
Treating Your Infrastructure Like Garbage Saturday, April 20, 13

Upload: datadogslides

Post on 12-Jul-2015

70 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Treating Infrastructure as Garbage

Treating Your InfrastructureLike Garbage

Saturday, April 20, 13

Page 2: Treating Infrastructure as Garbage

Mike Fiedler, DatadogTwitter: @mikefiedler

Saturday, April 20, 13

Page 3: Treating Infrastructure as Garbage

What dowe care about?

• servers

• uptime

• load

• alerts

Saturday, April 20, 13

Page 4: Treating Infrastructure as Garbage

What shouldwe care about?

• services

• uptime

• performance

• alerts

Saturday, April 20, 13

Page 5: Treating Infrastructure as Garbage

What’s the difference?

• approach

• perspective

• business goals

Saturday, April 20, 13

Page 6: Treating Infrastructure as Garbage

Stop server hugging!

(C) GigaOM

Saturday, April 20, 13

Page 7: Treating Infrastructure as Garbage

Everything fails.Be ready for it.

http://youtu.be/drQlSptFXXIWatch this:

Saturday, April 20, 13

Page 8: Treating Infrastructure as Garbage

So, how?

Saturday, April 20, 13

Page 9: Treating Infrastructure as Garbage

Popular stack

LB

Data

User

Web

Saturday, April 20, 13

Page 10: Treating Infrastructure as Garbage

Choose elasticity• Use distributed, self-healing storage

Data

Saturday, April 20, 13

Page 11: Treating Infrastructure as Garbage

Web Choose elasticity

• Design web tier to tolerate failure

• session state?

• application behavior?

service = n + 1

Saturday, April 20, 13

Page 12: Treating Infrastructure as Garbage

Choose elasticity

• Monitor web tier health

• Not always as easy at it seems!

LB

Saturday, April 20, 13

Page 13: Treating Infrastructure as Garbage

Choose elasticityUser

Saturday, April 20, 13

Page 14: Treating Infrastructure as Garbage

Missing piece?

LB

Data

User

Web

Saturday, April 20, 13

Page 15: Treating Infrastructure as Garbage

Monitoring

LB

Data

Web

UserMonitor

Saturday, April 20, 13

Page 16: Treating Infrastructure as Garbage

[demo]https://github.com/miketheman/fullstack

Saturday, April 20, 13

Page 17: Treating Infrastructure as Garbage

Tools used• AWS EC2

• MongoDB

• Bottle.py

• Python

• Apache HTTP

• HAProxy

• Siege

• Chef

• Ruby

• Spiceweasel

• Datadog

• Money

Saturday, April 20, 13

Page 18: Treating Infrastructure as Garbage

Skills employed

• System architecture design

• Performance monitoring

• Capacity & disaster planning

Saturday, April 20, 13

Page 19: Treating Infrastructure as Garbage

What did you just see?

• A design pattern

• Experiencing failure and recovery

• Disposable servers, valuable service

Saturday, April 20, 13

Page 20: Treating Infrastructure as Garbage

#HugOpsSaturday, April 20, 13