Creating the cluster and deploying services
All hands-on parts of the past chapters started with the execution of a script that creates a cluster and deploys the services we'll need. This chapter is no exception. You know the drill so let's get to it.
Note
All the commands from this chapter are available in the 11-instrumentation.sh (https://gist.github.com/vfarcic/85bd6824032fb2a05d7fe624516548a7) Gist:chmod +x scripts/dm-swarm-11.sh
./scripts/dm-swarm-11.sh
eval $(docker-machine env swarm-1)
docker stack ls
We executed the dm-swarm-11.sh script
which, in turn, created a Swarm cluster composed of Docker Machines, created the networks, and deployed only one stack. The last command listed all the stacks in the cluster and showed that we are running only the proxy stack.
Let's move into the counter metric.