Book Image

Docker High Performance

By : Allan Espinosa
Book Image

Docker High Performance

By: Allan Espinosa

Overview of this book

<p>Docker is a portable container format that allows you to run code anywhere from your desktop to the cloud. The workflow around Docker makes development, testing, and deployment much easier and much faster. However, it’s essential that you know the best practices most techniques for optimization so Docker can help you deploy your application most effectively.</p> <p>This comprehensive guide will improve your Docker workflows and will ensure your application’s production environment runs smoothly. It starts with a short refresher on working with Docker, then you will learn how to take this basic knowledge to the next level by optimizing your Docker infrastructure and applications at scale. At the end of the book, we will put the concepts and everything you have learned about Docker’s features into practice by rolling out supplementary monitoring and troubleshooting instrumentation to your infrastructure. All of these things will ensure your application succeeds using Docker.</p>
Table of Contents (15 chapters)
Docker High Performance
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Monitoring with collectd


We finished setting up a place to send all our Docker-related data to. Now, it is time to actually fetch all the data related to our Docker applications. In this section, we will use collectd, a popular system statistics collection daemon. It is a very lightweight and high-performance C program. This makes it a noninvasive monitoring software because it doesn't consume many resources from the system it monitors. Being lightweight, it is very simple to deploy as it requires minimum dependencies. It has a wide variety of plugins to monitor almost every component of our system.

Let's begin monitoring our Docker host. Follow the next few steps to install collectd and send the metrics to our Graphite deployment:

  1. First, install collectd in our Docker host by typing the following command:

    dockerhost$ apt-get install collectd-core
    
  2. Next, create a minimum collectd configuration to send data to our Graphite deployment. You may recall from before that we exposed the carbon-cache...