What Is Docker Swarm?

As more and more people jump on the Docker bandwagon, more and more people are wondering just exactly how we scale this thing. Some will have heard of Docker-Compose, some will have heard of Docker Swarm, and then there’s some folks out there with their Kubernetes and Mesos clusters.

Docker Swarm became native to Docker in v1.12 and makes container orchestration super simple. Not only that, but each node is accessible via the hostname due to the built in DNS and Service Discovery. With it’s overlay network and inbuilt routing mesh, all the nodes can accept connections on the published ports for any of the services running in the Swarm. This basically gives you the access to multiple-nodes and treat them as one.

Just to top it off, Docker Swarm has built-in load balancing. Send a request to any of the nodes and it will send the request in a round-robin fashion to all the containers running the requested service. Simply amazing, and I’m going to show you how you can get started with this great technology.

For my example, I’ve chosen a PHP application (cue the flames), it’s a great way to show how a real-world app may be scaled using Terraform, Packer & Docker Swarm on Openstack.

Check out the link below to carry on reading!

http://bobbyjason.co.uk/blog/252/what-is-docker-swarm-and-how-to-use-it-to-scale-a-simple-php-app-along-with-terraform-packer-on-cloud-native-infrastructure-powered-by-openstack/

You just earned points!
Login to save points.
Earn your spot on the leaderboard.

You earned Ochen points!

You're on your way to the top of the leaderboard!