fast delivery devops israel

98
Fast Delivery Adrian Cockcroft @adrianco Technology Fellow - Battery Ventures October 2014

Upload: adrian-cockcroft

Post on 14-Jun-2015

8.028 views

Category:

Technology


0 download

DESCRIPTION

DevOps oriented version of the Fast Delivery talk presented in Tel Aviv October 29th 2014

TRANSCRIPT

Page 1: Fast Delivery DevOps Israel

Fast DeliveryAdrian Cockcroft @adrianco

Technology Fellow - Battery Ventures October 2014

Page 2: Fast Delivery DevOps Israel

Typical reactions to my Netflix talks…

Page 3: Fast Delivery DevOps Israel

Typical reactions to my Netflix talks…

“You guys are crazy! Can’t believe it”

– 2009

Page 4: Fast Delivery DevOps Israel

Typical reactions to my Netflix talks…

“You guys are crazy! Can’t believe it”

– 2009

“What Netflix is doing won’t work”

– 2010

Page 5: Fast Delivery DevOps Israel

Typical reactions to my Netflix talks…

“You guys are crazy! Can’t believe it”

– 2009

“What Netflix is doing won’t work”

– 2010 It only works for ‘Unicorns’ like

Netflix” – 2011

Page 6: Fast Delivery DevOps Israel

Typical reactions to my Netflix talks…

“You guys are crazy! Can’t believe it”

– 2009

“What Netflix is doing won’t work”

– 2010 It only works for ‘Unicorns’ like

Netflix” – 2011

“We’d like to do that but can’t”

– 2012

Page 7: Fast Delivery DevOps Israel

Typical reactions to my Netflix talks…

“You guys are crazy! Can’t believe it”

– 2009

“What Netflix is doing won’t work”

– 2010 It only works for ‘Unicorns’ like

Netflix” – 2011

“We’d like to do that but can’t”

– 2012

“We’re on our way using Netflix OSS code”

– 2013

Page 8: Fast Delivery DevOps Israel

What I learned from my time at Netflix

Page 9: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace

Page 10: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace•Remove friction from product development

Page 11: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace•Remove friction from product development•High trust, low process, no hand-offs between teams

Page 12: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace•Remove friction from product development•High trust, low process, no hand-offs between teams•Freedom and responsibility culture

Page 13: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace•Remove friction from product development•High trust, low process, no hand-offs between teams•Freedom and responsibility culture•Don’t do your own undifferentiated heavy lifting

Page 14: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace•Remove friction from product development•High trust, low process, no hand-offs between teams•Freedom and responsibility culture•Don’t do your own undifferentiated heavy lifting•Use simple patterns automated by tooling

Page 15: Fast Delivery DevOps Israel

What I learned from my time at Netflix

•Speed wins in the marketplace•Remove friction from product development•High trust, low process, no hand-offs between teams•Freedom and responsibility culture•Don’t do your own undifferentiated heavy lifting•Use simple patterns automated by tooling•Self service cloud makes impossible things instant

Page 16: Fast Delivery DevOps Israel

Cloud Adoption

%*&!”

By Simon Wardley http://enterpriseitadoption.com/

Page 17: Fast Delivery DevOps Israel

Cloud Adoption

%*&!”

By Simon Wardley http://enterpriseitadoption.com/

2009

Page 18: Fast Delivery DevOps Israel

Cloud Adoption

%*&!”

By Simon Wardley http://enterpriseitadoption.com/

2009

Page 19: Fast Delivery DevOps Israel

Cloud Adoption

@adrianco’s new job at the intersection of cloud and Enterprise IT

%*&!”

By Simon Wardley http://enterpriseitadoption.com/

20142009

Page 20: Fast Delivery DevOps Israel

The Global Land-Grab

Page 21: Fast Delivery DevOps Israel

The Global Land-Grab

Page 22: Fast Delivery DevOps Israel

The Global Land-Grab

Page 23: Fast Delivery DevOps Israel

The Global Land-Grab

Azure AWS GCE

19 Regions 11 Regions 3 Regions

Page 24: Fast Delivery DevOps Israel

The Global Land-Grab

Azure AWS GCE

19 Regions 11 Regions 3 Regions

?

?

?

?

?

http://www.google.com/about/datacenters/inside/locations/index.html http://azure.microsoft.com/en-us/regions/

Page 25: Fast Delivery DevOps Israel

The Global Land-Grab

Azure AWS GCE

19 Regions 11 Regions 3 Regions

?

?

?

?

?

http://www.google.com/about/datacenters/inside/locations/index.html http://azure.microsoft.com/en-us/regions/

Page 26: Fast Delivery DevOps Israel

This is the year that Enterprises finally embraced cloud.

Page 27: Fast Delivery DevOps Israel

This is the year that Enterprises finally embraced cloud.

Page 28: Fast Delivery DevOps Israel

This is the year that Enterprises finally embraced cloud.

Page 29: Fast Delivery DevOps Israel

This is the year that Enterprises finally embraced cloud.

Page 30: Fast Delivery DevOps Israel

What separates incumbents from

disruptors?

Page 31: Fast Delivery DevOps Israel

“It isn't what we don't know that gives us trouble, it's what we

know that ain't so.” !

Will Rogers

Page 32: Fast Delivery DevOps Israel

Assumptions

Page 33: Fast Delivery DevOps Israel

Optimizations

Page 34: Fast Delivery DevOps Israel

Assumption: Process prevents

problems

Page 35: Fast Delivery DevOps Israel

Organizations build up slow complex “Scar

tissue” processes

Page 36: Fast Delivery DevOps Israel

"This is the IT swamp draining manual for anyone who is neck deep in alligators.”

1984 2014

Page 37: Fast Delivery DevOps Israel

Product Development

Processes

Page 38: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act Continuous Delivery

Page 39: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Measure Customers

Continuous Delivery

Page 40: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

INNOVATION

Measure Customers

Continuous Delivery

Page 41: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

Model Hypotheses

INNOVATION

Measure Customers

Continuous Delivery

Page 42: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

Model Hypotheses

BIG DATA

INNOVATION

Measure Customers

Continuous Delivery

Page 43: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

JFDI

Plan Response

Share Plans

Model Hypotheses

BIG DATA

INNOVATION

Measure Customers

Continuous Delivery

Page 44: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

JFDI

Plan Response

Share Plans

Model Hypotheses

BIG DATA

INNOVATION

CULTURE

Measure Customers

Continuous Delivery

Page 45: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

JFDI

Plan Response

Share Plans

Incremental Features

Automatic Deploy

Launch AB Test

Model Hypotheses

BIG DATA

INNOVATION

CULTURE

Measure Customers

Continuous Delivery

Page 46: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

JFDI

Plan Response

Share Plans

Incremental Features

Automatic Deploy

Launch AB Test

Model Hypotheses

BIG DATA

INNOVATION

CULTURE

CLOUD

Measure Customers

Continuous Delivery

Page 47: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

JFDI

Plan Response

Share Plans

Incremental Features

Automatic Deploy

Launch AB Test

Model Hypotheses

BIG DATA

INNOVATION

CULTURE

CLOUD

Measure Customers

Continuous Delivery

Page 48: Fast Delivery DevOps Israel

Observe

Orient

Decide

Act

Land grab opportunity Competitive

Move

Customer Pain Point

Analysis

JFDI

Plan Response

Share Plans

Incremental Features

Automatic Deploy

Launch AB Test

Model Hypotheses

BIG DATA

INNOVATION

CULTURE

CLOUD

Measure Customers

Continuous Delivery

Page 49: Fast Delivery DevOps Israel

Breaking Down the SILOs

Page 50: Fast Delivery DevOps Israel

Breaking Down the SILOs

QA DBA Sys Adm

Net Adm

SAN AdmDevUXProd

Mgr

Page 51: Fast Delivery DevOps Israel

Breaking Down the SILOs

QA DBA Sys Adm

Net Adm

SAN AdmDevUXProd

Mgr

Product Team Using Monolithic DeliveryProduct Team Using Monolithic Delivery

Page 52: Fast Delivery DevOps Israel

Breaking Down the SILOs

QA DBA Sys Adm

Net Adm

SAN AdmDevUXProd

MgrProduct Team Using Microservices

Product Team Using Monolithic Delivery

Product Team Using MicroservicesProduct Team Using Microservices

Product Team Using Monolithic Delivery

Page 53: Fast Delivery DevOps Israel

Breaking Down the SILOs

QA DBA Sys Adm

Net Adm

SAN AdmDevUXProd

MgrProduct Team Using Microservices

Product Team Using Monolithic Delivery

Platform TeamProduct Team Using MicroservicesProduct Team Using Microservices

Product Team Using Monolithic Delivery

Page 54: Fast Delivery DevOps Israel

Breaking Down the SILOs

QA DBA Sys Adm

Net Adm

SAN AdmDevUXProd

MgrProduct Team Using Microservices

Product Team Using Monolithic Delivery

Platform TeamA P I

Product Team Using MicroservicesProduct Team Using Microservices

Product Team Using Monolithic Delivery

Page 55: Fast Delivery DevOps Israel

Breaking Down the SILOs

QA DBA Sys Adm

Net Adm

SAN AdmDevUXProd

MgrProduct Team Using Microservices

Product Team Using Monolithic Delivery

Platform Team

DevOps is a Re-Org

A P I

Product Team Using MicroservicesProduct Team Using Microservices

Product Team Using Monolithic Delivery

Page 56: Fast Delivery DevOps Israel

Release Plan

Developer

Developer

Developer

Developer

Developer

QA Release Integration

Ops Replace Old With New

Release

Monolithic service updates

Works well with a small number of developers and a single language like php, java or ruby

Page 57: Fast Delivery DevOps Israel

Release Plan

Developer

Developer

Developer

Developer

Developer

QA Release Integration

Ops Replace Old With New

Release

Bugs

Monolithic service updates

Works well with a small number of developers and a single language like php, java or ruby

Page 58: Fast Delivery DevOps Israel

Release Plan

Developer

Developer

Developer

Developer

Developer

QA Release Integration

Ops Replace Old With New

Release

Bugs

Bugs

Monolithic service updates

Works well with a small number of developers and a single language like php, java or ruby

Page 59: Fast Delivery DevOps Israel

Developer

Developer

Developer

Developer

Developer

Old Release Still Running

Release Plan

Release Plan

Release Plan

Release Plan

Immutable microservice deployment is faster, scales with large teams and diverse platform components

Page 60: Fast Delivery DevOps Israel

Developer

Developer

Developer

Developer

Developer

Old Release Still Running

Release Plan

Release Plan

Release Plan

Release Plan

Deploy Feature to Production

Deploy Feature to Production

Deploy Feature to Production

Deploy Feature to Production

Immutable microservice deployment is faster, scales with large teams and diverse platform components

Page 61: Fast Delivery DevOps Israel

Developer

Developer

Developer

Developer

Developer

Old Release Still Running

Release Plan

Release Plan

Release Plan

Release Plan

Deploy Feature to Production

Deploy Feature to Production

Deploy Feature to Production

Deploy Feature to Production

Bugs

Immutable microservice deployment is faster, scales with large teams and diverse platform components

Page 62: Fast Delivery DevOps Israel

Developer

Developer

Developer

Developer

Developer

Old Release Still Running

Release Plan

Release Plan

Release Plan

Release Plan

Deploy Feature to Production

Deploy Feature to Production

Deploy Feature to Production

Deploy Feature to Production

Bugs

Deploy Feature to Production

Immutable microservice deployment is faster, scales with large teams and diverse platform components

Page 63: Fast Delivery DevOps Israel

Developing at the Speed of Docker

Developers • Compile/Build • Seconds

Extend container • Package dependencies • Seconds

PaaS deploy Container • Docker startup • Seconds

etc…

Page 64: Fast Delivery DevOps Israel

Developing at the Speed of Docker

Emerging market for Docker runtime orchestration options

Developers • Compile/Build • Seconds

Extend container • Package dependencies • Seconds

PaaS deploy Container • Docker startup • Seconds

etc…

Page 65: Fast Delivery DevOps Israel

What Happened?Rate of change

increased

Cost and size and risk of change

reduced

Page 66: Fast Delivery DevOps Israel

Disruptor: Continuous Delivery with Microservices

Page 67: Fast Delivery DevOps Israel

A Microservice Definition !

Loosely coupled service oriented architecture with bounded contexts

Page 68: Fast Delivery DevOps Israel

A Microservice Definition !

Loosely coupled service oriented architecture with bounded contexts

If every service has to be updated at the same time it’s not loosely coupled

Page 69: Fast Delivery DevOps Israel

A Microservice Definition !

Loosely coupled service oriented architecture with bounded contexts

If every service has to be updated at the same time it’s not loosely coupled

If you have to know too much about surrounding services you don’t have a bounded context. See the Domain Driven Design book by Eric Evans.

Page 70: Fast Delivery DevOps Israel

High Availability Patterns

● Business logic isolation in stateless micro-services

● Immutable code with instant rollback

● Auto-scaled capacity and deployment updates

● Distributed across availability zones and regions

● De-normalized single function NoSQL data stores

● See over 40 NetflixOSS projects at netflix.github.com

● Get “Technical Indigestion” trying to keep up with techblog.netflix.com

Page 71: Fast Delivery DevOps Israel

US Bandwidth April 2014

Page 72: Fast Delivery DevOps Israel

US Bandwidth April 2014

ELB

Page 73: Fast Delivery DevOps Israel

US Bandwidth April 2014

ELB

OpenConnect

Page 74: Fast Delivery DevOps Israel

Cloud Native Monitoring and Microservices

Page 75: Fast Delivery DevOps Israel

Cloud Native● High rate of change

Code pushes can cause floods of new instances and metrics Short baseline for alert threshold analysis – everything looks unusual

● Ephemeral Configurations Short lifetimes make it hard to aggregate historical views Hand tweaked monitoring tools take too much work to keep running

● Microservices with complex calling patterns End-to-end request flow measurements are very important Request flow visualizations get overwhelmed

Page 76: Fast Delivery DevOps Israel

Microservice Based Architectures

See http://www.slideshare.net/LappleApple/gilt-from-monolith-ruby-app-to-micro-service-scala-service-architecture

Page 77: Fast Delivery DevOps Israel

“Death Star” Architecture Diagrams

As visualized by Appdynamics, Boundary.com and Twitter internal tools

Page 78: Fast Delivery DevOps Israel

“Death Star” Architecture Diagrams

Netflix Gilt Groupe (12 of 450) Twitter

As visualized by Appdynamics, Boundary.com and Twitter internal tools

Page 79: Fast Delivery DevOps Israel

Continuous Delivery and DevOps

●Changes are smaller but more frequent

● Individual changes are more likely to be broken

●Changes are normally deployed by developers

●Feature flags are used to enable new code

● Instant detection and rollback matters much more

Page 80: Fast Delivery DevOps Israel

Whoops! I didn’t mean that! Reverting…

Not cool if it takes 5 minutes to see it failed and 5 more to see a fix No-one notices if it only takes 5 seconds to detect and 5 to see a fix

Page 81: Fast Delivery DevOps Israel

NetflixOSS Hystrix/Turbine Circuit Breaker

http://techblog.netflix.com/2012/12/hystrix-dashboard-and-turbine.html

Page 82: Fast Delivery DevOps Israel

NetflixOSS Hystrix/Turbine Circuit Breaker

http://techblog.netflix.com/2012/12/hystrix-dashboard-and-turbine.html

Page 83: Fast Delivery DevOps Israel

Low Latency SaaS Based Monitors

www.vividcortex.com and www.boundary.com

Page 84: Fast Delivery DevOps Israel

Metric to display latency needs to be less than human attention span (~10s)

Page 85: Fast Delivery DevOps Israel

Separation of Concerns

Bounded Contexts

Page 86: Fast Delivery DevOps Israel

Answers to Some Common Questions

Page 87: Fast Delivery DevOps Israel

Reaction from Fortune 100 CTO: “But Netflix has a superstar development team, we don’t!"

Page 88: Fast Delivery DevOps Israel

Reaction from Fortune 100 CTO: “But Netflix has a superstar development team, we don’t!"

Adrian’s Response: “Netflix hired them from you, and got out of their way…”

Page 89: Fast Delivery DevOps Israel

Where to Start with DevOps?

Enterprise Mobile Apps Horizontal Team App-Store Provisioning APIs to Everyone DevOps Already…

Page 90: Fast Delivery DevOps Israel

1

Archive Data in

the Cloud

2

Use Diverse Cloud Zones and Regions

Where to Start with Cloud?

3

Migrate to Cloud-aware

Tooling

Page 91: Fast Delivery DevOps Israel

What about cloud costs?

Page 92: Fast Delivery DevOps Israel

See my AWS Re:Invent talk !

“Cloud Native Cost Optimization”

Page 93: Fast Delivery DevOps Israel

Cloud Native Cost Optimization

Turn it off! Capacity on demand Consolidate and Reserve Plan for price cuts FOSS tooling

$ $ $

Page 94: Fast Delivery DevOps Israel

Forward Thinking

Page 95: Fast Delivery DevOps Israel

Forward Thinking

Page 96: Fast Delivery DevOps Israel

Forward Thinking

Page 97: Fast Delivery DevOps Israel

Forward Thinking

http://eugenedvorkin.com/seven-micro-services-architecture-advantages/

Page 98: Fast Delivery DevOps Israel

Any Questions?

Disclosure: some of the companies mentioned are Battery Ventures Portfolio Companies See www.battery.com for a list of portfolio investments

● Battery Ventures http://www.battery.com ● Adrian’s Blog http://perfcap.blogspot.com ● Slideshare http://slideshare.com/adriancockcroft !

● Monitorama Opening Keynote Portland OR - May 7th, 2014 - Video available ● GOTO Chicago Opening Keynote May 20th, 2014 - Video available ● Qcon New York – Speed and Scale - June 11th, 2014 - Video available ● Structure - Cloud Trends - San Francisco - June 19th, 2014 - Video available ● GOTO Copenhagen/Aarhus – Denmark – Sept 25th, 2014 ● DevOps Enterprise Summit - San Francisco - Oct 21-23rd, 2014 ● GOTO Berlin - Germany - Nov 6th, 2014 ● AWS Re:Invent - Las Vegas - November 14th, 2014 ● Dockercon Europe - Amsterdam - December 4th, 2014