Skip to content

docs: say swarm drain does not wait for replacement tasks - #25871

Open
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:docs/drain-no-wait-replicas
Open

docs: say swarm drain does not wait for replacement tasks#25871
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:docs/drain-no-wait-replicas

Conversation

@locker95

Copy link
Copy Markdown
Contributor

The drain tutorial says the manager stops tasks on the node and launches replicas on an active node. That's true, but it doesn't wait for those replacements to be running first — so you can dip under --replicas, and draining the last worker takes everything down at once.

Added that to the existing note.

@netlify /engine/swarm/swarm-tutorial/drain-node/

Fixes #9917

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95
locker95 requested a review from dvdksn as a code owner August 17, 2026 13:56
@github-actions github-actions Bot added area/engine Issue affects Docker engine/daemon area/swarm Issue affects swarm and clustering functionality of docker labels Aug 17, 2026
@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 466fc33
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a8315281229780008cf9041
😎 Deploy Preview https://deploy-preview-25871--docsdocker.netlify.app/engine/swarm/swarm-tutorial/drain-node/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/engine Issue affects Docker engine/daemon area/swarm Issue affects swarm and clustering functionality of docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearly explain that draining a swarm node does not wait for replcas to be started on an active node before stopping tasks on a node being drained

1 participant