14
@ToriWieldt From Pets to Cattle to Bacteria TORI WIELDT JULY 2015

From Pets to Cattle to Bacteria OSCON BOF

Embed Size (px)

Citation preview

Page 1: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

From Pets to Cattle to BacteriaTORI WIELDTJULY 2015

Page 2: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Evolution

Add Copy

Pet Photo: Chicken, the best dog everCattle Photo: John ComloquoyBacteria image: R. Muir, Bacteriological Atlas

Page 3: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Kale

Photo by Martin Bodman

Page 4: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Virtualization

PETS CATTLE

Server attached to particular app

Servers typically on site

Own and maintain

Name and become attached

Improved resource utilization

Typically off site

Vendor maintained

Problems? Just delete

Done? Delete

Page 5: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Containerization

CATTLE BACTERIA

VMs are “heavyweight”

Images are hard to upload

Not portable

Typically “long lived”

Lightweight

A process isolator

Alive for minutes

Page 6: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

• Docker Monitoring Beta since May

• 300 New Relic customers

• 40,000 to 60,000 containers daily

• > 2 million containers

• Disclaimer: it’s early!

New Relic Customers Using Docker

Page 7: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Page 8: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Container Lifespan

Page 9: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

What To Monitor

• Monitoring servers makes less sense

• Applications span containers

Page 10: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

F O R D E V E L O P E R S

Implications

Iterate fast and often

Containers aren’t VM replacements

Single container for a single process

Processes working together to solve a problem

Page 11: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

• New Relic 5th largest generator of data in the world

• Using Docker for 1.5 years

• Our Engineers have written the book!

• From zero to using it for deployment of ahuge release in 2 months

• Started with simplest web apps

• “We generate bacteria”

• One process to create info and another to clean it up

New Relic Use of Docker

Page 12: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Centurion • Docker Deployment Tool for repeatable deployments

1. Build ships container to Docker registry

2. Centurion sends container to Docker fleet

• Developers can deploy apps

• Open source tool

• GitHub: Newrelic/centurion

• Ruby Gem

• Implementing Docker in Production at Scale

This image is the work of Luc Viatour

Page 13: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

F O R O P E R A T I O N S

Implications

Measure images, not servers

Containers can provide 4-6x more capacity than VMs

Update dependencies in sync w releases

Separate builds from deployment

Lower the bar for developer use of Docker

Start simple: high throughput apps should not be the first thing you Dockerize

Page 14: From Pets to Cattle to Bacteria OSCON BOF

@ToriWieldt

Thank youTORI [email protected]@TORIWIELDT