If you have managed a online store, you must be aware that the store got much higher load during festive period. And you wish that you should scale your resources. If you are running resources as docker instance, then this article will help to handle such spikes.
Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual Docker host. It is powerful, highly scalable, and easy to use.
The first step to create a Swarm cluster on your network is to pull the Docker Swarm image. Then, using Docker, you configure the Swarm manager and all the nodes to run Docker Swarm. This method requires that you:
open a TCP port on each node for communication with the Swarm manager
install Docker on each node
create and manage TLS certificates to secure your cluster
As a starting point, the manual method is best suited for experienced administrators or programmers contributing to Docker Swarm. The alternative is to use docker-machine to install a cluster.
Using Docker Machine, you can quickly install a Docker Swarm on cloud providers or inside your own data center. If you have VirtualBox installed on your local machine, you can quickly build and explore Docker Swarm in your local environment. This method automatically generates a certificate to secure your cluster.
https://www.youtube.com/watch?v=sg9wNcdMhbU
https://docs.docker.com/swarm/overview/
https://docs.docker.com/swarm/install-w-machine/