DCA · Question #41
What service mode is used to deploy a single task of a service to each node?
The correct answer is E. global. The global service mode in Docker Swarm ensures that exactly one task of a service runs on every available node in the swarm.
Question
What service mode is used to deploy a single task of a service to each node?
Options
- Areplicated
- Bspread
- Cuniversal
- Ddistributed
- Eglobal
How the community answered
(36 responses)- B3% (1)
- C6% (2)
- D3% (1)
- E89% (32)
Why each option
The global service mode in Docker Swarm ensures that exactly one task of a service runs on every available node in the swarm.
Replicated services run a specified number of identical tasks across the swarm, not necessarily one per node.
Spread is a deployment strategy, not a service mode; it aims to evenly distribute tasks across nodes but doesn't guarantee one per node.
"Universal" is not a standard Docker Swarm service mode.
"Distributed" is a general term and not a specific Docker Swarm service mode for deploying one task per node.
In Docker Swarm, a global service deploys one task per node, ensuring that the service is running on all managers and workers that meet the service constraints. This mode is ideal for agents, monitoring tools, or daemon-like services that need to be present on every machine in the cluster.
Concept tested: Docker Swarm global service mode
Source: https://docs.docker.com/engine/swarm/services/
Topics
Community Discussion
No community discussion yet for this question.