treating infrastructure as garbage
TRANSCRIPT
![Page 1: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/1.jpg)
Treating Your InfrastructureLike Garbage
Saturday, April 20, 13
![Page 2: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/2.jpg)
Mike Fiedler, DatadogTwitter: @mikefiedler
Saturday, April 20, 13
![Page 3: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/3.jpg)
What dowe care about?
• servers
• uptime
• load
• alerts
Saturday, April 20, 13
![Page 4: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/4.jpg)
What shouldwe care about?
• services
• uptime
• performance
• alerts
Saturday, April 20, 13
![Page 5: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/5.jpg)
What’s the difference?
• approach
• perspective
• business goals
Saturday, April 20, 13
![Page 6: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/6.jpg)
Stop server hugging!
(C) GigaOM
Saturday, April 20, 13
![Page 7: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/7.jpg)
Everything fails.Be ready for it.
http://youtu.be/drQlSptFXXIWatch this:
Saturday, April 20, 13
![Page 8: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/8.jpg)
So, how?
Saturday, April 20, 13
![Page 9: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/9.jpg)
Popular stack
LB
Data
User
Web
Saturday, April 20, 13
![Page 10: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/10.jpg)
Choose elasticity• Use distributed, self-healing storage
Data
Saturday, April 20, 13
![Page 11: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/12.jpg)
Choose elasticity
• Monitor web tier health
• Not always as easy at it seems!
LB
Saturday, April 20, 13
![Page 13: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/13.jpg)
Choose elasticityUser
Saturday, April 20, 13
![Page 14: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/14.jpg)
Missing piece?
LB
Data
User
Web
Saturday, April 20, 13
![Page 15: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/15.jpg)
Monitoring
LB
Data
Web
UserMonitor
Saturday, April 20, 13
![Page 16: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/16.jpg)
[demo]https://github.com/miketheman/fullstack
Saturday, April 20, 13
![Page 17: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/18.jpg)
Skills employed
• System architecture design
• Performance monitoring
• Capacity & disaster planning
Saturday, April 20, 13
![Page 19: Treating Infrastructure as Garbage](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/19.jpg)
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](https://reader035.vdocuments.mx/reader035/viewer/2022062514/55a22e941a28ab92428b4626/html5/thumbnails/20.jpg)
#HugOpsSaturday, April 20, 13