Book Image

Beginning DevOps with Docker

By : Joseph Muli
5 (1)
Book Image

Beginning DevOps with Docker

5 (1)
By: Joseph Muli

Overview of this book

Making sure that your application runs across different systems as intended is quickly becoming a standard development requirement. With Docker, you can ensure that what you build will behave the way you expect it to, regardless of where it's deployed. By guiding you through Docker from start to finish (from installation, to the Docker Registry, all the way through to working with Docker Swarms), we’ll equip you with the skills you need to migrate your workflow to Docker with complete confidence.
Table of Contents (7 chapters)

Scaling Services Up and Down


As the number of requests coming into your application increases or decreases, there will be a need to scale the infrastructure. We have recently worked with node replicas running the same WordPress installation we made.

Note

That is a very basic example of a production-level setup. Ideally, we would need a few more manager nodes and replicas, but since we are running a demo, this will be sufficient.

Scaling involves both the increase and decrease of resources depending on an application's traffic.

Scaling Our Database Service

We will scale our database service as an example of how to scale services. In a real-world scenario, cloud services such as Google Cloud Platform and Amazon Web Services may have automatic scaling services defined, where a number of replicas are created and traffic is distributed across the replicas through a service known as load balancing. We will dig deeper into that in the next activity. First, we understand how scaling works from the...