the truth about docker container lifecycles · 2017-12-14 · the truth about docker container...

37
The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015

Upload: others

Post on 02-Jun-2020

26 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015

Page 2: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

A story begins…

Page 3: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Servicification of New Relic

Page 4: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Service container life cycle

Long lived Short lived

VM

Page 5: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Theory Docker is a lightweight VM

Page 6: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Let’s monitor it!

Page 7: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Well that was surprising

Page 8: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run
Page 9: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Apparent customer usage

Long lived Short lived

VM

Page 10: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Theory Docker is a lightweight VM Docker is a cloud compute container

Page 11: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Pets vs Cattle

Page 12: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Along came New Relic Synthetics…

•  User authored selenium scripts run in our data center •  Each run in its own container for security isolation •  Mostly run for under a minute

Page 13: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Along came New Relic Synthetics…

•  Test external availability and performance •  User authored selenium scripts run in our data center •  Each run in its own container for security isolation •  Most run for under a minute

Page 14: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

A lighter weight usage

Long lived Short lived

VM

Page 15: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Theory Docker is a lightweight VM Docker is a cloud compute container Docker is a short lived compute engine

Page 16: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

What the heck’s going on?

Long lived Short lived

VM

? ? ?

Page 17: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

1: Hey we’re monitoring it!

Page 18: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

2: We’re Data Nerds!

Page 19: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Data set analyzed

CUSTOMERS

Approx. 1000

TOTAL CONTAINERS

8+ million

AVERAGE 24 HR CONTAINERS

300,000+

Page 20: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

100

10K

1M 3.7 M

333 days 83 days

Page 21: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

100

10K

1M 3.7 M

Like VMs

Page 22: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

100

10K

1M 3.7 M

Cloud-ish

Page 23: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

100

10K

1M 3.7 M

Lightweight compute engine

Page 24: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run
Page 25: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

3,741,000 46% under one hour

Page 26: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run
Page 27: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

950,000 11% under one minute

Page 28: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

27% under 5 minutes (versus a VM?)

Page 29: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

June versus now: 5x data, same shape

Page 30: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

A surprising result

Long lived Short lived

VM

Page 31: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Why this matters 1.  Usage is evolving in (fascinating) unexpected ways

2.  Single technology that can span such wide usage is a game changer

3.  Monitoring tools need to fit the lifecycle

Page 32: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Takeaways •  Same technology spans a huge usage scope

•  What explains all this? •  Batch jobs? •  “Microservices”?

•  The missing metric: computational work •  There will be a lot more short lived anything

Page 33: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

The evolution of computation as a service •  Short startup time (orders mag.) allows very short lived computing

•  Containers are created •  Do their work •  Go away

•  Containers only exist, and only for as long, as they provide value.

Full stop.

Page 34: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Implications of computation as a service? •  What does it mean to network them together?

•  What does it mean for orchestration of work?

•  What does it mean for CI? Does it increase agility?

•  What does it mean for provisioning, load balance, availability?

•  How do we know what they’re doing? (And, what is “what”?)

Page 35: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Monitoring servers

Page 36: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Monitoring computation

Page 37: The Truth about Docker Container Lifecycles · 2017-12-14 · The Truth about Docker Container Lifecycles KEVIN MCGUIRE AUGUST 17/2015 . ... • User authored selenium scripts run

Thank you Kevin McGuire [email protected] @KevinMcGUI