the wide range of devops · devs do all ops the range requires more than ops. ops is a black box....

111
The wide range of DevOps

Upload: others

Post on 22-Jun-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

The wide range of DevOps

Page 2: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Mitchell Hashimoto@mitchellh

Page 3: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Vagrant

Page 4: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 5: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 6: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

♥DevOps

Page 7: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

♥Memes

WARNING!

Page 8: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

I got into DevOps by accident.(But I love it!)

Page 9: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Confession: I’m new to this.

Page 10: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

No experience withRack & Stack.

Page 11: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

I am the Cloud generation.

Page 12: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

More specifically...I am the bridge.

Page 13: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

I practice DevOps!

Page 14: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

But my devs don’t do ops...

Page 15: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Is this still DevOps?

Page 16: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

DevOps:A range.

Page 17: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Based on my experience transitioning to DevOps...

Page 18: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Vagrant

Page 19: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 20: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

2 people to 200 people

Page 21: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops is a black box.

Devs do all ops

Page 22: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops is a black box.

Devs do all ops

The Range Requires More than Ops

Page 23: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops is a black box.

Devs do all ops

Road to... increased stability.Road to... faster feedback.Road to... cheaper iteration.

Page 24: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Metrics, metrics, everywhere.

Page 25: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

What does my code do?

Page 26: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

What is the system -wide effect of this change?

Page 27: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Why is my service slow?

Page 28: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops knows.

Page 29: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 30: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 31: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 32: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Developers should know, too.

Page 33: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 34: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

It should be easy

Page 35: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Remember, we’re right here now.

Page 36: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

How do we make this easy?

Page 37: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 38: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Graphite + Statsite = ♥

Page 39: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

That was easy.

Page 40: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 41: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 42: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Insight into... performanceInsight into... system-wide effectInsight into... ops!

Page 43: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Document your infrastructure

Page 44: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 45: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

“Its easy!”

Page 46: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

“Its easy!”Your request comes in. IPTables lets it pass through because its global traffic on a load balancer. It then hits an SSL terminator which proxies the request back to a level 7 load balancer, which round robins the request to an app server. If its a static file request its served directly off disk otherwise it goes to the actual application process. Now your code is executed.Got it? Ready to learn about service orchestration, response caching, and how the site stays running?

Page 47: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 48: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

1. Document your ops.

Page 49: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 50: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Topics...Deploy process

Lifecycle of a requestHow do new servers come online?Coding guidelines for Cookbooks

Failures and resolutions (automated or not)Tools guides (htop, lsof, ps, netcat, strace)

Development VM internals (Vagrant)

Page 51: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Remove the Black Box

Page 52: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

2. Company Tech Talks

Page 53: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Bi-weekly.Short (15 minutes).

Deep dives.

Page 54: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Topics...HAProxyVagrant

Configuration management philosophyOn-Call Practices

Infrastructure testing and verification

Page 55: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Deeper understandingof technologies in use

Page 56: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 57: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Insight into... architectureInsight into... scalabilityInsight into... how code is executedInsight into... ops!

Page 58: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Production-mirror Dev Environments

Page 59: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Vagrant

Page 60: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Duplicate efforts forproduction vs. development?

Page 61: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Use production ops for development

Page 62: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Extra effort involved.Big gain.

Page 63: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Small effect on developer workflow.

Page 64: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 65: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Insight into... provisioningInsight into... server evolutionInsight into... architectureInsight into... ops!

Page 66: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

DevOps Office Hours

Page 67: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops can be scary to those new to it.

Page 68: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

What was that?!

Page 69: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Luckily, we’re friendly.

Page 70: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops office hours.Dev office hours.

Page 71: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

A comfortable environmentto ask and learn anything.

Page 72: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 73: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Office hour activities...Architecture explanation

Fast Chef tutorialHelp with cookbook bugs

Teaching how current cookbooks workCode review!

Page 74: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

My Office Hours:Mondays 3 - 5 PM

Page 75: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 76: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Insight into... anything

Provides a safe, comfortable learning environment.

Page 77: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Automated Infrastructure Tests

Page 78: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Warning: This field isstill under heavy development

Page 79: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Honestly: I don’t trustdevs to do ops, right now.

Page 80: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

But... I don’t need to.

Page 81: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 82: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Test that Chef runscomplete successfully.

Page 83: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Run integration testson top of that.

Page 84: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

My Opinion: “Unit tests”for ops is still too new and

doesn’t excite me yet.

Page 85: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Test at high level...Do the new changes apply cleanly?

Can I still load the website?Is it still secure?

Do all the interactions with the site still work?

Page 86: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Can we do better?

Page 87: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Can we do better?I think so. We need tools.

Page 88: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Also: Code Review

Page 89: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops engineers verifyany non-ops contributions

Page 90: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 91: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Developers are now safeto make their own ops changes.*

* Ops supervision still important

Page 92: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Devs: Go Crazy.

Page 93: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

A strong foundation.

Page 94: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

Page 95: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

In-depth documentation.

Page 96: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

In-depth documentation.

Production-mirror development.

Page 97: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

In-depth documentation.

Production-mirror development.

A safe learning environment.

Page 98: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

In-depth documentation.

Production-mirror development.

A safe learning environment.

Infrastructure verification.

Page 99: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

In-depth documentation.

Production-mirror development.

A safe learning environment.

Infrastructure verification.

Devs doing Ops.

Page 100: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Powerful insight via metrics.

In-depth documentation.

Production-mirror development.

A safe learning environment.

Infrastructure verification.

But: This is all DevOps.

Page 101: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Ops is a black box.

Devs do all ops

Page 102: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

WAIT! The most important

question of all...

Page 103: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Who wears the pager?

Page 104: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

On-call rotation foreverybody.

Page 105: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Problem/Solutionnot in the Wiki?

Call in the ops engineer.

Page 106: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Can’t fix the problemin 5 minutes or less?

Call in the ops engineer.

Page 107: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

I only care about thesite or services going down.

Page 108: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

Nagios [almost]never wakes me up.

Page 109: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops
Page 110: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

People aren’t overworked.Everyone shares responsibility.

Page 111: The wide range of DevOps · Devs do all ops The Range Requires More than Ops. Ops is a black box. Devs do all ops Road to... increased stability. Road to... faster feedback. ... Ops

THANK YOUI ♥ DevOps

Questions?