We'll start by setting up a Swarm cluster and deploying the stacks that we'll use in this chapter.
A note to The DevOps 2.1 Toolkit readers
You should be very familiar with Docker Swarm, and the rest of this chapter will not provide any information that you do not already know. You are free to skip to the Is it enough to have self-healing applied to services? section in this chapter. If, on the other hand, you feel a bit forgetful and would like to refresh your memory, I'll do my best to be as brief as possible and provide only the bare minimum.
All the commands from this chapter are available in the 08-self-healing-services.sh Gist at https://gist.github.com/vfarcic/99325930813d7e25375b982c7e2498d2.
chmod +x scripts/dm-swarm-08.sh
./scripts/dm-swarm-08.sh
eval $(docker-machine env swarm-1)
docker stack ls
We executed the...