Problem Statement
Explain the difference between manager and worker nodes in Docker Swarm.
Explanation
In Docker Swarm, a manager node handles control plane tasks: scheduling services, maintaining cluster state (via Raft consensus), handling API requests. A worker node executes tasks: runs container instances of services as assigned by managers. Managers can also run tasks unless configured otherwise. Clear role understanding is essential for designing scalable clusters.
