living system or build factory - chris maxwell

73
Living System or Build Factory? Chris Maxwell @WrathOfChris Cloud guy @ Ubiquiti Networks

Upload: devopsdays

Post on 08-May-2015

836 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Living system or build factory  - Chris Maxwell

Living System or

Build Factory?!

Chris Maxwell !

@WrathOfChris

Cloud guy @ Ubiquiti Networks

Page 2: Living system or build factory  - Chris Maxwell

Who is this talk for?

• We build systems

• We turn design into implementation

• We operate systems forever**not forever

Page 3: Living system or build factory  - Chris Maxwell

We keep systems from failing

Page 4: Living system or build factory  - Chris Maxwell

Holding up the system?

Page 5: Living system or build factory  - Chris Maxwell

We do it wrong

Page 6: Living system or build factory  - Chris Maxwell

Not helping

Page 7: Living system or build factory  - Chris Maxwell

What is a Living System?

Page 8: Living system or build factory  - Chris Maxwell

The business has a need

Page 9: Living system or build factory  - Chris Maxwell

Instructions are unclear

Page 10: Living system or build factory  - Chris Maxwell

What about THIS space?

Page 11: Living system or build factory  - Chris Maxwell

Instructions are not followed

Page 12: Living system or build factory  - Chris Maxwell

...except a VCR, CD’s, and a remote?

Page 13: Living system or build factory  - Chris Maxwell

Production loads change unexpectedly

Page 14: Living system or build factory  - Chris Maxwell

Additional capacity added

Page 15: Living system or build factory  - Chris Maxwell

Wrong tools at hand

Page 16: Living system or build factory  - Chris Maxwell

12ga crimp on 24ga wire doesn’t work

Page 17: Living system or build factory  - Chris Maxwell

Patches are put into production

Page 18: Living system or build factory  - Chris Maxwell

Patches become production

Page 19: Living system or build factory  - Chris Maxwell

Production is unexpected

Page 20: Living system or build factory  - Chris Maxwell

Unexpected Scotsman

Page 21: Living system or build factory  - Chris Maxwell

Parts not available

Page 22: Living system or build factory  - Chris Maxwell

No ventilation ducting available

Page 23: Living system or build factory  - Chris Maxwell

Inconsistent Origins

Page 24: Living system or build factory  - Chris Maxwell

One of these things

is not like the other

http://www.flickr.com/photos/msittig/4801606785/

Page 25: Living system or build factory  - Chris Maxwell

• Has a long life

• Mutates over time

• Each system slightly different

• The system is the state

Living System

http://www.flickr.com/photos/anijdam/2362660336/

Page 26: Living system or build factory  - Chris Maxwell

Problems!

Can you rebuild it … fast?

… accurately?http://www.flickr.com/photos/adactio/2856955322/

Page 27: Living system or build factory  - Chris Maxwell

Problems!

Do you keep: • HA failover? • Standby host?

Page 28: Living system or build factory  - Chris Maxwell

Problems!

Have you tested? !

When both fail?

Page 29: Living system or build factory  - Chris Maxwell

What is a Build Factory?

Page 30: Living system or build factory  - Chris Maxwell

For business…:

Page 31: Living system or build factory  - Chris Maxwell

Run the linehttp://www.flickr.com/photos/pasukaru76/6893926948/

Page 32: Living system or build factory  - Chris Maxwell

For devs…:

Page 33: Living system or build factory  - Chris Maxwell

make clean && make

Page 34: Living system or build factory  - Chris Maxwell

For ops…:

Page 35: Living system or build factory  - Chris Maxwell

Kill it with firehttp://www.flickr.com/photos/comedynose/3549464622/

Page 36: Living system or build factory  - Chris Maxwell

Looking back on Build Factory

Page 37: Living system or build factory  - Chris Maxwell

Copying systems

Page 38: Living system or build factory  - Chris Maxwell
Page 39: Living system or build factory  - Chris Maxwell

Cloning systems

Page 40: Living system or build factory  - Chris Maxwell

Early build factories took time

Page 41: Living system or build factory  - Chris Maxwell

...hours on 10baseT

Page 42: Living system or build factory  - Chris Maxwell

...tumbleweeds...

Page 43: Living system or build factory  - Chris Maxwell

It was a manual process

Page 44: Living system or build factory  - Chris Maxwell

How to restore a VM image...

...in 7 easy pages of screenshots

Sorry, couldn’t release these pics :( It was just lots of screenshots

+ do this, then that instructions

Page 45: Living system or build factory  - Chris Maxwell

It was a manual process

Page 46: Living system or build factory  - Chris Maxwell

...and still manual work afterhttp://spalinux.com/wp-content/uploads/2008/10/

windows_join_domain.png

Page 47: Living system or build factory  - Chris Maxwell

Scripting is a start

Page 48: Living system or build factory  - Chris Maxwell

I will replace you with a short script

Page 49: Living system or build factory  - Chris Maxwell

Makefiles track dependencies

Page 50: Living system or build factory  - Chris Maxwell

or a Makefile

it builds your kernel, and probably your OS

Page 51: Living system or build factory  - Chris Maxwell

Today’s tools

Page 52: Living system or build factory  - Chris Maxwell

Not a complete list

Page 53: Living system or build factory  - Chris Maxwell

Describe

Page 54: Living system or build factory  - Chris Maxwell

Write down all of the steps

http://www.flickr.com/photos/spree2010/4960430323/

Page 55: Living system or build factory  - Chris Maxwell

Automate

Page 56: Living system or build factory  - Chris Maxwell

“too complex for any one man’s memory”http://www.flickr.com/photos/sepblog/3679949333/

Page 57: Living system or build factory  - Chris Maxwell

Replicate

Page 58: Living system or build factory  - Chris Maxwell

Build 3 the same, tie them together

Page 59: Living system or build factory  - Chris Maxwell

Repeat

Page 60: Living system or build factory  - Chris Maxwell

Training makes elements replaceable

Page 61: Living system or build factory  - Chris Maxwell

Build Factory

• Has a short life

• Replaced for each change

• Each system the same

• The procedure is the state

http://upload.wikimedia.org/wikipedia/commons/5/50/Krispy_Kreme_Doughnuts.jpg

Page 62: Living system or build factory  - Chris Maxwell

When something jams !

deep in the system

Page 63: Living system or build factory  - Chris Maxwell

a scrap of paper caught in the drive gear

Page 64: Living system or build factory  - Chris Maxwell

Replace It!•fix it later •send it for

repair •get production

working!

Page 65: Living system or build factory  - Chris Maxwell

When production patches take over

Page 66: Living system or build factory  - Chris Maxwell

Production maintenance changes the system

Page 67: Living system or build factory  - Chris Maxwell

Rebuild it!

Page 68: Living system or build factory  - Chris Maxwell

Sometimes you get to rebuild them

Page 69: Living system or build factory  - Chris Maxwell

In the cloud?

!

live replace might cost up to 1 hour

of billing

Page 70: Living system or build factory  - Chris Maxwell

In the datacentre?

!

live replace can be done with

spare capacity

Page 71: Living system or build factory  - Chris Maxwell

Takeaway

• Describe it

• Automate it

• Produce it

• Repeat it

Page 72: Living system or build factory  - Chris Maxwell

Questions?!

@WrathOfChris !

[email protected] !

Like the Loch Ness Monster,Answers are over there...

Page 73: Living system or build factory  - Chris Maxwell

• Forgotten attributions: • ghost-1:http://www.all-internet-security.com/images/pc-copy.jpg

• ghost-2:http://www2.expta.com/uploaded_images/Ghost-741732.png

• ghost-3:http://internship.wesmilliron.com/wp-content/uploads/2012/08/vmware-norton-ghost.jpg

• laplink: http://thumbs1.ebaystatic.com/d/l225/m/mkhsfLBMjkjjMw9skfQUNag.jpg

• lap link:http://www.old-games.com/screenshot/5736-1-lap-link-3-for-dos.jpg