Top Banner
@bglpe Devops and Immutable Infrastructure John Wills Technical Evangelist
19

Devops and Immutable infrastructure - Cloud Expo 2015 NYC

Jul 28, 2015

Download

Education

John Willis
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: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Devops and Immutable Infrastructure

John Wills!Technical Evangelist

Page 2: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

@botchagalupe• a.k.a. John Willis

• 35 Years in IT Operations

• Exxon, Canonical, Chef, Enstratius, Socketplane

• Devopsdays Core Organizer

• Devopscafe on iTunes

• Tweet to @bglpe for Questions

Page 3: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Agenda• What is Immutable Infrastructure?

• Why Immutable (Order Matters)

• Models and Methods

• Docker and Immutable Infrastructure

• Case Studies

Page 4: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Page 5: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Immutable Infrastructure

Myth

Page 6: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

“The least-cost way to ensure that the behavior of any two hosts will remain completely identical is always to

implement the same changes in the same order on both hosts.”

Order Matters

Page 7: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Management Methods

• Divergence

• Convergence

• Congruence

Page 8: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Why (When) Does Order Matter?

• Circular Dependancies

• Right Command Wrong Order

• Right Package Wrong Order

Page 9: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Package Example

Page 10: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Immutable Infrastructure “Model”

• No CRUD allowed for…

• Packages

• Configuration Files

• Application Software

• Data (RUD)

Page 11: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

How To Do Immutable?

• Provision a new server.

• Test the new server.

• Change the reference to the new server.

• Keep the old server around for rollback.

Page 12: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

The Immutable “Trombone”• Golden Images

• Virtual Desktop Infrastructure (VDI)

• Virtual Images

• Phoenix Servers vs Snowflake Servers

• Infrastructure as Code

• Bake vs Fry

• Containers

Page 13: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Page 14: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Why Docker?• Isolation

• Lightweight

• Simplicity

• Workflow

• Community

Page 15: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Docker Community• 1200 Docker Contributors

• 100,000 Dockerized Applications

• 3 to 4 Million Developers using Docker

• 300 Million Downloads

• 32,000 Docker Related Projects

• 70% of enterprises are using Docker

Page 16: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Case Studies

Page 17: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

Case Studies

Page 18: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

ReferencesDocker and the Three Ways of Devops!https://blog.docker.com/2015/05/docker-three-ways-ops/!!Trash Your Servers and Burn Your Code: Immutable Infrastructure and Disposable Components!Chad Fowler June 2013!http://chadfowler.com/blog/2013/06/23/immutable-deployments/!!PhoenixServer!Martin Fowler July 2012!http://martinfowler.com/bliki/PhoenixServer.html!!Building with Legos!http://techblog.netflix.com/2011/08/building-with-legos.html!!Immutable Infrastructure with Docker and EC2": Gilt at Dockercon (Video)!http://tech.gilt.com/post/90578399884/immutable-infrastructure-with-docker-and-ec2!!Why you should build an Immutable Infrastructure!by Florian Motlik - 2014-07-22!https://blog.codeship.com/immutable-infrastructure/!!Baked Servers vs Fried Servers!http://if.andonlyif.net/blog/2012/10/baked-servers-vs-fried-servers.html!!Why Order Matters: Turing Equivalence in Automated Systems Administration!https://www.usenix.org/legacy/publications/library/proceedings/lisa02/tech/full_papers/traugott/traugott_html/index.html!!An Analysis of RPM Validation Drift!https://www.usenix.org/legacy/events/lisa2002/tech/full_papers/hart/hart.pdf!

Page 19: Devops and Immutable infrastructure  - Cloud Expo 2015 NYC

@bglpe

[email protected] @botchagalupe