Book Image

Docker High Performance - Second Edition

By : Espinosa, Russ McKendrick
Book Image

Docker High Performance - Second Edition

By: Espinosa, Russ McKendrick

Overview of this book

Docker is an enterprise-grade container platform that allows you to build and deploy your apps. Its portable format lets you run your code right from your desktop workstations to popular cloud computing providers. This comprehensive guide will improve your Docker work?ows and ensure your application's production environment runs smoothly. This book starts with a refresher on setting up and running Docker and details the basic setup for creating a Docker Swarm cluster. You will then learn how to automate this cluster by using the Chef server and cookbooks. After that, you will run the Docker monitoring system with Prometheus and Grafana, and deploy the ELK stack. You will also learn best practices for optimizing Docker images. After deploying containers with the help of Jenkins, you will then move on to a tutorial on using Apache JMeter to analyze your application's performance. You will learn how to use Docker Swarm and NGINX to load-balance your application, and how common debugging tools in Linux can be used to troubleshoot Docker containers. By the end of this book, you will be able to integrate all the optimizations that you have learned and put everything into practice in your applications.
Table of Contents (11 chapters)

Benchmarking

In optimizing our Docker applications, it is important to validate the parameters that we tuned. Benchmarking is an experimental way of identifying whether the elements we modified in our Docker containers performed as expected. Our application will have a wide area of options to be optimized. The Docker hosts running them have their own set of parameters, such as memory, networking, CPU, and storage, as well. Depending on the nature of our application, one or more of these parameters can become a bottleneck. Having a series of tests to validate each component with benchmarks is important for guiding our optimization strategy.

Additionally, by creating proper performance tests, we can identify the limits of the current configuration of our Docker-based application. With this information, we can start exploring infrastructure parameters, such as scaling out our application...