Top Banner
CHATOPS/AUTOMATION HOW TO GET THERE WHILE EVERYTHING'S ON FIRE Fran Garcia hostedgraphite.com
37

Chatops/Automation: How to get there while everything's on fire

Jan 07, 2017

Download

Technology

Fran Garcia
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chatops/Automation: How to get there while everything's on fire

CHATOPS/AUTOMATIONHOW TO GET THERE WHILE EVERYTHING'S ON FIRE

Fran Garciahostedgraphite.com

Page 2: Chatops/Automation: How to get there while everything's on fire

$ WHOAMI

Fran Garcia, Ops Engineer @hostedgraphite

No twitter account (I know, right?)

(We're hiring! hostedgraphite.com/jobs)

Page 3: Chatops/Automation: How to get there while everything's on fire

CHATOPS: NOT JUST FOR BIG TEAMS ANYMORE!

Page 4: Chatops/Automation: How to get there while everything's on fire

THINGS I WANT TO COVER TODAY

• WTF is this chatops thing anyway?

• Hosted Graphite: a one-year automation journey

• Key lessons learned on building automation

Page 5: Chatops/Automation: How to get there while everything's on fire

"CHATOPS IS GOOD, CHATOPS IS LIFE"

Before we start, let's introspect a little...

Page 6: Chatops/Automation: How to get there while everything's on fire

"CHATOPS IS GOOD, CHATOPS IS LIFE"

Before we start, let's introspect a little...

Who doesn't know what chatops is?

Page 7: Chatops/Automation: How to get there while everything's on fire

"CHATOPS IS GOOD, CHATOPS IS LIFE"

Before we start, let's introspect a little...

Who doesn't know what chatops is?

Who is currently implementing chatops?

Page 8: Chatops/Automation: How to get there while everything's on fire

"CHATOPS IS GOOD, CHATOPS IS LIFE"

Before we start, let's introspect a little...

Who doesn't know what chatops is?

Who is currently implementing chatops?

Who is planning to implement chatops or would like to?

Page 9: Chatops/Automation: How to get there while everything's on fire

"CHATOPS IS GOOD, CHATOPS IS LIFE"

Before we start, let's introspect a little...

Who doesn't know what chatops is?

Who is currently implementing chatops?

Who is planning to implement chatops or would like to?

Who hates the word "chatops" with the burning rage of a thousand dying suns?

Page 10: Chatops/Automation: How to get there while everything's on fire

"NIHILIST ENGINEERS DON'T BELIEVE IN CHATOPS"

Page 11: Chatops/Automation: How to get there while everything's on fire

SO WHAT IS THIS CHATOPS THING

ANYWAY?

Page 12: Chatops/Automation: How to get there while everything's on fire

HOSTED GRAPHITE, CIRCA JUNE 2015

1 ops engineer (Hi Dan!)

Growing quickly, lots of scaling bottlenecks.

Very immature automation, nonexistent in some areas.

Ops putting out fires, pushing new features

Page 13: Chatops/Automation: How to get there while everything's on fire

HOSTED GRAPHITE, 2015 DEPLOYMENT PROCESS

• "Just modify this yaml file in this server here"

• "Then just trigger the deployment using ssh in a for loop"

Page 14: Chatops/Automation: How to get there while everything's on fire

HOSTED GRAPHITE, PRESENT DAY

3x growth on ops team (3 of us now, and we're hiring).

Still growing! Traffic has doubled over the last year.

Much more mature automation, not limited to use inside of ops.

Page 15: Chatops/Automation: How to get there while everything's on fire

HOSTED GRAPHITE: PRESENT DAY

Page 16: Chatops/Automation: How to get there while everything's on fire

THE ROBOTS ARE TAKING OUR JOBS!

Page 17: Chatops/Automation: How to get there while everything's on fire

HOW DID WE GET THERE?

Page 18: Chatops/Automation: How to get there while everything's on fire

DREAM BIG

Page 19: Chatops/Automation: How to get there while everything's on fire

DREAM BIG: EXAMPLE

Page 20: Chatops/Automation: How to get there while everything's on fire

DREAM SMALL

SMALL

Page 21: Chatops/Automation: How to get there while everything's on fire

DREAM SMALL: EXAMPLE

Page 22: Chatops/Automation: How to get there while everything's on fire

BE CONSISTENT WITH YOUR INTERFACES

(Not just for code or APIs)

Page 23: Chatops/Automation: How to get there while everything's on fire

CONSISTENT INTERFACES: EXAMPLE

Page 24: Chatops/Automation: How to get there while everything's on fire

KEEP IT LOOSE(LY COUPLED)

Page 25: Chatops/Automation: How to get there while everything's on fire

ALWAYS HAVE A PLAN B

Or "don't get rid of the old way of doing things just yet"

Page 26: Chatops/Automation: How to get there while everything's on fire

ALWAYS HAVE A PLAN B

Page 27: Chatops/Automation: How to get there while everything's on fire

DON'T BE AFRAID OF WRITING BAD CODE

Page 28: Chatops/Automation: How to get there while everything's on fire

DON'T BE AFRAID OF WRITING BAD CODE

Crappy code in the repo is more productive than great code in your head.

Prototype, discard what doesn't work and refactor what does, it'll be grand.

Recommended watch: "You code like a sysadmin" LISA14 presentation (https://youtu.be/ZjdqP-REoqc)

Page 29: Chatops/Automation: How to get there while everything's on fire

HELP PEOPLE BUILD CONFIDENCE IN YOUR TOOLS

Page 30: Chatops/Automation: How to get there while everything's on fire

BUILDING CONFIDENCE

Build the tool before the automation.

Page 31: Chatops/Automation: How to get there while everything's on fire

BUILDING CONFIDENCE

Allow humans to verify actions before applying them

Page 32: Chatops/Automation: How to get there while everything's on fire

BUILDING CONFIDENCE

Add the heuristic and have the tool tell you what it would do

Page 33: Chatops/Automation: How to get there while everything's on fire

DON'T GIVE PEOPLE FISH (BECAUSE IT'S WEIRD)

TEACH THEM HOW TO FISH INSTEAD.

Page 34: Chatops/Automation: How to get there while everything's on fire

DON'T UNDERESTIMATE INTEGRATIONS

Page 35: Chatops/Automation: How to get there while everything's on fire

BONUS SLIDETESTIMONIALS

Page 36: Chatops/Automation: How to get there while everything's on fire

WRAPPING UP

Page 37: Chatops/Automation: How to get there while everything's on fire

THANKS!Thoughts? Questions? General abuse?

@hostedgraphite

[email protected]

(We're still hiring! hostedgraphite.com/jobs)