18
Lightning Talk: Running MongoDB on Docker for High Performance Deployments Johannes Brandstetter Chef de Cuisine at MongoSoup @loomit

Lightning Talk: Running MongoDB on Docker for High Performance Deployments

  • Upload
    mongodb

  • View
    1.163

  • Download
    0

Embed Size (px)

DESCRIPTION

Docker is an open-source engine that helps automate deployment of any process as a lightweight, portable, self-sufficient container that will run virtually anywhere. Docker containers are also immensely helpful when running thousands of MongoDB instances in a production environment. This talk will give you a quick overview of Docker, show you best practices and patterns for Dockerfiles aimed at running MongoDB within Docker with real life examples from MongoSoup. One part will focus on performance and how much overhead Docker produces in comparison to native MongoDB instances. I will also talk about which tools or frameworks in the Docker eco system have proven useful to orchestrate larger deployments with Replica Sets and Sharding (e.g. CoreOS, fleet, geard, vulcand, Kubernetes, etc.)

Citation preview

Page 1: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

Lightning Talk: Running MongoDB on Docker for High Performance Deployments

Johannes BrandstetterChef de Cuisine at MongoSoup

@loomit

Page 2: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

• MongoDB Hosting from Germany • Shared Hosting• Dedicated Servers• Customized Solutions

Page 3: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

Announcing today:

All instances deployed with MongoDB Enterprise Edition

Page 4: Lightning Talk: Running MongoDB on Docker for High Performance Deployments
Page 5: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

What is Docker?

Page 6: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

What is Docker?

Page 7: Lightning Talk: Running MongoDB on Docker for High Performance Deployments
Page 8: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

Why should I care?

It‘s the new hitsh*t and everyone‘s using it, or at least talking about it

Page 9: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

But why would I use it for a Database?

You can put its config in gitIsolate all the things!It‘s freakin‘ fast

Page 10: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

http://domino.research.ibm.com/library/cyberdig.nsf/papers/0929052195DD819C85257D2300681E7B/$File/rc25482.pdf

Page 11: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

Top 5 tips for MongoDB on Docker

Page 12: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

1.

Use a proper base image

Page 13: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

2.

Activate ssh (seriously)

Page 14: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

3.

Use a data only container for your dbPath

Page 15: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

4.

Use a private Docker registry

Page 16: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

5.

Use DNS when deploying Replica Sets

Page 17: Lightning Talk: Running MongoDB on Docker for High Performance Deployments
Page 18: Lightning Talk: Running MongoDB on Docker for High Performance Deployments

Visit our booth, we have a raffle!www.mongosoup.de

@mongosoup