You can change the node availability according to your need. You can perform the below operations.
drain a manager node so that only performs swarm management tasks and is unavailable for task assignment.
drain a node so you can take it down for maintenance.
pause a node so it can’t receive new tasks.
restore unavailable or paused nodes available status.
For example, to change a manager node to Drain availability.
$ docker node update --availability drain node-1