The important data on managers is stored in /var/lib/docker/swarm
. Here we have:
certificates/
raft/
worker/
It's a good idea to set up a periodical backup of this data, in case recovery is needed.
The space used by the Raft log depends on the number of tasks spawned onto the cluster and on how frequently their states change. For 200,000 containers, the Raft log can grow up to around 1GB of disk space every three hours. A log entry of each task occupies around 5 KB. Consequently, the log rotation policies for the Raft log directory, /var/lib/docker/swarm/raft
, should be calibrated more or less aggressively, which depends on the available disk space.