Docker Swarm Flashcards
Where we use Docker swarm ?
We use it to orchestrate multi-container apps that run on multiple hosts in contrast to docker compose which runs on one host.
It is composed of two things:
a) an enterprise secure cluster of hosts
b) an engine for orchestrate micro service apps
What does the cluster provides?
encrypted distributed cluster store,
encrypted networks, mutual TLS, secure cluster join tokens, and a PKI that makes
managing and rotating certificates a breeze
From clustering view point, what is a swarm?
Swarm is a cluster of physical docker hosts.
On swarm , what is etcd?
etcd is a distributed database on all nodes which preserves the state of the swarm.
How the nodes (meaning categories ) are divided?
Nodes are configured as managers or workers. Managers look after the control plane
of the cluster, meaning things like the state of the cluster and dispatching tasks to
workers. Workers accept tasks from managers and execute them.