Illustrate running a replicated vs global service

by codydiehl
GNU/Linux ◆ xterm ◆ bash 1711 views

Showing an example of global vs replicated services. Replicated services can be deployed as many replicas as required for scaling. Typically you would scale up or down based on the workload expected. Whereas with global services there will always be one task/container running on each node within the swarm. Global services are more for deploying monitoring agents, or log collectors, antivirus, etc. Note the name of replicas gets appended with each replica number, where as each global task gets the ID of the node it is running on appended to the service name.