Docker Swarm

Out of the box, Docker contains an orchestration framework and a management platform very architecturally similar to the one covered just a second ago, called Docker Swarm. Swarm allows a pretty quick and simple way to get scaling integrated with your platform with minimal ramp-up time and given that it is already a part of Docker itself, you really don't need much else to deploy a simple set of services in a clustered environment. As an added benefit, it contains a pretty solid service discovery framework, has multi-host networking capability, and uses TLS for communication between nodes.

Multi-host networking capability is the ability of a system to create a virtual network across multiple physical machines that are transparent from the point of view of the container. Using one of these, your containers can communicate with each other as if they were on the same physical network, simplifying the connectivity logic and reducing operational costs. We will look into this aspect of clustering in depth a bit later.

The cluster configuration for Docker Swarm can be a simple YAML file, but the downside is that GUI tools are, at the time of writing this, somewhat lacking, though Portainer (https://portainer.io) and Shipyard (https://shipyard-project.com) are getting to be pretty decent, so this might not be a problem for too long. Additionally, some large-scale ops tooling is missing and it seems that generally, features of Swarm are heavily evolving and thus in a state of flux, so my personal recommendation would be to use this type of orchestration if you need to get something up and running quickly on small-to-largish scales. As this product gets more and more mature (and since Docker Inc. is placing a lot of development resources behind this), it will probably improve significantly, and I expect it to match Kubernetes features in many respect so keep an eye out for its feature news.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.55.75