From Pets to Cattle to Bacteria OSCON BOF
-
Upload
tori-wieldt -
Category
Software
-
view
772 -
download
2
Transcript of From Pets to Cattle to Bacteria OSCON BOF
@ToriWieldt
From Pets to Cattle to BacteriaTORI WIELDTJULY 2015
@ToriWieldt
Evolution
Add Copy
Pet Photo: Chicken, the best dog everCattle Photo: John ComloquoyBacteria image: R. Muir, Bacteriological Atlas
@ToriWieldt
Kale
Photo by Martin Bodman
@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
@ToriWieldt
Containerization
CATTLE BACTERIA
VMs are “heavyweight”
Images are hard to upload
Not portable
Typically “long lived”
Lightweight
A process isolator
Alive for minutes
@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
@ToriWieldt
@ToriWieldt
Container Lifespan
@ToriWieldt
What To Monitor
• Monitoring servers makes less sense
• Applications span containers
@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
@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
@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
@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