114
www.devopsguys.com Phone: 0800 368 7378 | e-mail: [email protected] 2016 BUILDING FOR DEVOPS SUCCESS

Building for DevOps Success

Embed Size (px)

Citation preview

Page 1: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

2016

BUILDING FOR

DEVOPS SUCCESS

Page 2: Building for DevOps Success

2www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

ABOUT ME

• 20 years of web-scale engineering experience

• Built e-commerce systems for Dell, Pizza Hut, KFC and more…• Dell generated $10 million/day.

• The rest….$150 million in revenue every year.

• Co-founder of the DevOpsGuys• http://www.devopsguys.com

• @thedevmgr

Page 3: Building for DevOps Success

3www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

DEVOPSGUYS

ACCELERATE & TRANSFORM

THE WAY ORGANISATIONS

DELIVER SOFTWARE

Page 4: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 5: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

SUCCESS!

(BUT FIRST COMES FAILURE)

Page 6: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

KNIGHT CAPITAL GROUP

WALL

Page 7: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

American global financial services company

market making

electronic execution

institutional sales

trading

In 2012…the largest trader in US equities

Page 8: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

3.3 billion trades

$21 billion

A day!

Page 9: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

On July 31, 2012 Knight

had approximately $365

million in cash.

Page 10: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Life is good!

Page 11: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

NYSE announces plans to launch

a new Retail Liquidity Program

Enable retail customers to

get price improvement for

their stock orders

Page 12: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Receives large orders from the trading platform

and breaks them up into multiple smaller

orders to find a buyer/seller match for the

volume of shares.

The larger the parent order, the more child

orders would be generated.

Photo Credit: Torben Bjørn Hansen via Compfight cc

Page 13: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

27 July 2016

“Power Peg”

Knight stopped using this

functionality in 2003

but the code was neither

deleted nor deactivated.

Photo Credit: Charles Crosbie via Compfight cc

Page 14: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Code update repurposed

an old flag that was used

to activate the “Power

Peg” functionality.

The code was thoroughly

tested and proven to

work correctly and

reliably.

Page 15: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

What could possibly go wrong?

Page 16: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Knight manually deploy

updates to a limited

number of servers per

day

8 servers are “updated”

Photo Credit: jovike via Compfight cc

Page 17: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

If there is an SEC filing about your

deployment something may have gone

terribly wrong!

Page 18: Building for DevOps Success

18www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

THE SEC FILING

During the deployment of the new code, however, one of Knight’s technicians did not copy the new code to one of the eight SMARS computer servers. Knight did not have a second

technician review this deployment and no one at Knight realized that the Power Peg code had not been removed from

the eighth server, nor the new RLP code added. Knight had no written procedures that required such a review.

-- SEC Filing | Release No. 70694 | October 16, 2013http://www.sec.gov/litigation/admin/2013/34-70694.pdf

Page 19: Building for DevOps Success

19www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

Missed one!

Page 20: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

August 1st, the markets open

Knight begin processing orders

7 servers begin processing orders correctly

one does not!

Photo Credit: harry harris via Compfight cc

Page 21: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

“Power Peg” is back from the dead!

Photo Credit: San Diego Shooter via Compfight cc

Page 22: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Count the shares bought/sold against a

parent order as child orders were executed

Send the child orders for execution

Stop once the parent share count has been

fulfilled

Photo Credit: marfis75 via Compfight cc

Page 23: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

27 July 2016

Cumulative tracking

functionality moved to an

earlier stage in the code

execution

And removed the count

tracking from “Power

Peg”Photo Credit: Vox Efx via Compfight cc

Page 24: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

LOOP

Page 25: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgrPhoto Credit: JD Hancock via Compfight cc

Page 26: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Imagine what would happen if you had a

system capable of sending automated,

high-speed orders into the market

without any tracking to see if enough

orders had been executed

Page 27: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

27 July 2016

Photo Credit: Wooly Matt via Compfight cc

OH s**T!

Page 28: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgrPhoto Credit: fPat via Compfight cc

OH s**T!

Page 29: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 30: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

9:30 AM – Markets Open

9:31 AM – Traders realise something is wrong

9:32 AM – Why hasn’t it stopped?

Photo Credit: somewheregladlybeyond via Compfight cc

Page 31: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

No kill switch

Trading 8 million shares / minute

+50% of the normal trading volume

stocks +10%

Photo Credit: Marshall Astor - Food Fetishist via Compfight cc

Page 32: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

No documented procedures

Start uninstalling the new code

Removed the working code

Amplified the issue

Photo Credit: Jason Michael via Compfight cc

Left the broken code

Page 33: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

45 minutes of trading

212 orders

millions of child orders

Page 34: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

4 million transactions against 154 stocks

397 million shares

Page 35: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

$460 million loss in 45-minutes

Photo Credit: zachstern via Compfight cc

Page 36: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Knight only has $365 million in cash

Page 37: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

In 45-minutes Knight went from being the

largest trader in US equities and a major

market maker in the NYSE and NASDAQ

Photo Credit: MattysFlicks via Compfight cc

Page 38: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

NADA….

Bankrupt

Page 39: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

WHAT’S THIS

DEVOPS THING?

Page 40: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

PEOPLE, PROCESS AND THE RIGHT TOOLS WORKING TOGETHER TO MAKE YOUR

SOFTWARE DELIVERY LIFECYCLE FASTER AND MORE PREDICTABLE.

Page 41: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 42: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

OPERABILITYScalability

Deployability

Resilience

Monitoring Alerting

Disaster Recovery

Supportability

Maintainability

Page 43: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

CONTINUOUS DELIVERY + OPERABILITY = DEVOPS

Page 44: Building for DevOps Success

44www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

KEY DEVOPS PATTERNS & PRACTICES

Developer self-service

Continuousmonitoring

Desired state management

Monitor everything

Integrated toolchains

Infrastructure as code

Collective Ownership

Continuous Improvement

Collaborative culture

Continuous experimentation

Full stack engineers

Autonomous teams

Integrated teams

Joint meetings

Job rotation

Servant leadership

Continuous integration

Continuous testing

Continuous delivery

Minimum viable product

Small batches

Automated Builds

Automated testing

Release automation

Canary rollouts

Instrument everything

Feature flags

Version everything

Test-driven development

Technical debt

Test everything

Minimum viable process

Test-drivendeployment

Common metrics

Optimise flow

Culture

Process

people

technology

Page 45: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

8 DEVOPS LESSONS

Page 46: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#1

IDENTIFY THE GOAL

Page 47: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 48: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

+

Page 49: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Company

Department

Team

Individual

Page 50: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

• Sprint

• 2 weeks6 18

• Month

• 2 sprints

Aspirational

(60%)

• Quarter

• 3 months

• Annual

• 12 months

1 2 3Vision

Page 51: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

• Sprint

• 2 weeks6 18

• Month

• 2 sprints

Aspirational

(60%)

• Quarter

• 3 months

• Annual

• 12 months

1 2 3

Positive

(70%)

VisionObjectives

Page 52: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

• Sprint

• 2 weeks6 18

• Month

• 2 sprints

Aspirational

(60%)

• Quarter

• 3 months

• Annual

• 12 months

1 2 3

Positive

(70%)

Considered

(80%)

VisionObjectivesPlan

Page 53: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

• Sprint

• 2 weeks6 18

• Month

• 2 sprints

Aspirational

(60%)

• Quarter

• 3 months

• Annual

• 12 months

1 2 3

Positive

(70%)

Considered

(80%)

Confident

(95%)

VisionPlanTasks Objectives

Page 54: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

“SUCCESS IS NOT CHECKING A BOX.

SUCCESS IS HAVING AN IMPACT.

IF YOU COMPLETE ALL TASKS AND

NOTHING EVER GETS BETTER, THAT'S NOT

SUCCESS.”

Christina Wodtke, OKR Coach

Page 55: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#2

BE AGILE

Page 56: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Scrum

Lean

Kanban

XP

DSDM

SAFe

Page 57: Building for DevOps Success

57www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

SCRUM IS POPULAR

Image source: State of Agile Survey, 2015

Page 58: Building for DevOps Success

58www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

Daily Stand-Ups

Retrospectives

Burndowns

VelocityIteration Planning

Story Mapping

Planning Poker

Page 59: Building for DevOps Success

59www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

Value people and how they communicate

Measure progress through working software

Collaborate with your customers

Respond to change

Page 60: Building for DevOps Success

60www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

THE MANIFESTO

• Individuals and interactions over processes and tools

•Working software over comprehensive documentation

•Customer collaboration over contract negotiation

•Responding to change over following a plan

Page 61: Building for DevOps Success

61www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

BEING AGILE

Image source: State of Agile Survey, 2015

Page 62: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

LEARN TO INSPECT & ADAPT

Page 63: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#3

ALIGN TO VALUE

Page 64: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 65: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Organization

Roles

Teams

Cadence

Taxonomy

Plan

Practices

Alignment

Autonomy

“Let’s try to give our teams three things….

Autonomy, Mastery, Purpose”

Page 66: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

AlignmentEvery team and business tracks scenarios and features consistently.

AutonomyEvery team chooses how to manage stories and/or tasks

Page 67: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

OPTIMISE YOUR ORGANISATION FOR PRODUCT DELIVERY

Page 68: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#4

DELIVER

CONTINUOUSLY

Page 69: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

TIME

Page 70: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Continuous DeliveryFrequent Release Events

WaterfallRare Release Events

Smoother EffortLess Risk

Effort PeaksHigh Risk

Time Time

Ch

ange

Ch

ange

Page 71: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 72: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

AUTOMATION IS IMPORTANT

Comprehensive, fast and reliable test and deployment automation

Trunk-based development & continuous integration

Application code and app and system configuration all in

version control

Together, the factors on the left model continuous delivery which

leads to…

Lower levels of deployment pain

Higher levels of IT performance (higher throughput & stability)

Lower change fail rates

Higher levels of org performance(productivity, market share,

profitability)

Page 73: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

https://xebialabs.com/periodic-table-of-devops-tools/

Page 74: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

15,000 engineers, working on 4,000+ projects

All code is checked into one source tree

(billions of files!)

5,500 code commits/day

75 million test cases/run daily

Page 75: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

DEPLOYMENT PAIN CAN TELL YOU A LOT ABOUT YOUR IT PERFORMANCE

Page 76: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#5

MEASURE WHAT’S

IMPORTANT

Page 77: Building for DevOps Success

77www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

WHERE DO I START?

• Start at the highest level

• Is measurement happening?

• Are metrics a thing?

• Ask around!

Page 78: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

START WITH YOUR IMPORTANT THINGS TO YOUR TEAM

Page 79: Building for DevOps Success

79www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

IDENTIFY A GOAL

• Is there existing data?

• Who are the key people?

• What things are important to support this goal?

Page 80: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

METRICS PROVIDE OPPORTUNITY FOR COMMUNICATION AND ALIGNMENT

Page 81: Building for DevOps Success

81www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

IDENTIFY A GOAL: SHIP EVERY DAY

• Is there existing data?

• Who are the key people?

• What things are important to support this goal?

Page 82: Building for DevOps Success

82www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

IDENTIFY A GOAL: SHIP EVERY DAY

• What things are important to support this goal?

• Test Maturity • Unit tests

• Component tests

• Integration tests

• Acceptance tests

• Performance tests

• Security tests

Page 83: Building for DevOps Success

83www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

IDENTIFY A GOAL: SHIP EVERY DAY

0

1

2

3

4

5

6

Unit Integration Acceptance Performance

Test Maturity

Product A Product B Product C

Page 84: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

WORKING SOFTWARE IS THE PRIMARY MEASURE OF PROGRESS.

Page 85: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#6

ACT ON FEEDBACK

Page 86: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

THE DELIVERY TEAM MUST RECEIVE FEEDBACK AND ACT ON IT

Page 87: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 88: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

INVOLVE EVERYBODY IN THE FEEDBACK PROCESS

Page 89: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 90: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

BROADCAST THE INFORMATION

Page 91: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 92: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

FEED THE WASTE SNAKE

Page 93: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 94: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

FEEDBACK MUST BE ACTED UPON

Page 95: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Page 96: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

HOW MANY TIMES PER DAY IS THE ANDON CORD PULLED IN A TYPICAL DAY AT A TOYOTA MANUFACTURING

PLANT?

Page 97: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

3,500 TIMES PER DAY

Page 98: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

“SHIT HITS THE FAN, BUT THAT DOES NOT MEAN YOU SHOULDN’T USE THE SAME

DISCIPLINE.”

Page 99: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#7

BUILD TRUST

Page 100: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

HIGHEST PREDICTOR OF PERFORMANCE

The Study of Information Flow: A Personal Journey; Westrum, Ron

Page 101: Building for DevOps Success

101www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

HOW WELL DO YOU IDENTIFY WITH?

• On my team, information is actively sought.

• On my team, failures are learning opportunities, and messengers of them are not punished.

• On my team, responsibilities are shared.

• On my team, cross-functional collaboration is encouraged and rewarded.

• On my team, failure causes enquiry.

• On my team, new ideas are welcomed.

Page 102: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

#8

OPTIMISE FLOW

Page 103: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

EVERYTHING YOU DO SHOULD OPTIMISE FLOW

Page 104: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

ANY OPTIMISATION NOT MADE AT THE CONSTRAINT IS AN ILLUSION

Page 105: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

THROUGHPUT IS PROFITABLE, EFFICIENCY IS NOT

Page 106: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

WHAT IS YOUR LEAD TIME FOR CHANGES?

Page 107: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

HOW LONG DOES IT TAKE TO GO FROM CODE COMMITTED TO CODE SUCCESSFULLY

RUNNING IN PRODUCTION?

Page 108: Building for DevOps Success

108www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

DEPLOYMENT LEAD TIME PREDICTS

• Ability for Dev and Ops to share a “common source of truth”

• Effectiveness of our automated testing in the deployment pipeline

• Ability to quickly deploy into production without causing chaos and disruption

• Ability to detect and correct problems through monitoring

• Ability for Dev and Ops to work together in a way that is “win / win”

• How quickly developers can get feedback on their work • Testing, deploying, production outcomes, customer outcomes

Page 109: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

Thousands of teams +

Micro services Architecture +

Continuous Delivery

= 50 MILLION DEPLOYMENTS/YEAR

136K DEPLOYS/DAY

Page 110: Building for DevOps Success

110www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

FLOW OPTIMISATION

• Split into 2 teams

• “Boss” has a stopwatch (on a phone)

• Record first chip to “boss”, record last chip to “boss”

• Developers job is to “flip the chip” (black dot up or down)

• Stack chips in piles of 10

• Complete the batch before passing to next person

Page 111: Building for DevOps Success

SPLIT INTO 2 TEAMS

Team A

Run # Time First Time Last

1 45 45

2 30 38

3 4 21

4 4 29

5 8 25

Team B

Run # Time First Time Last

1 55 55

2 58 58

3 55 55

4 51 51

5 1.01 1.01

Page 112: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

@TheDevMgr

DEPLOY SMALLER CHANGES MORE FREQUENTLY

Page 113: Building for DevOps Success

113www.devopsguys.com

Phone: 0800 368 7378 | e-mail: [email protected]@TheDevMgr

8 LESSONS

1. #IdentifyTheGoal

2. #BeAgile

3. #AlignToValue

4. #DeliverContinuously

5. #MeasureWhatsImportant

6. #ActOnFeedback

7. #BuildTrust

8. #OptimiseForFlow

Page 114: Building for DevOps Success

www.devopsguys.comPhone: 0800 368 7378 | e-mail: [email protected]

THANK YOU