[Feature Request] Add option to auto-rm departed nodes
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.7k
- Forks
- 676
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 6
Description
Currently, a worker node that has voluntarily left a swarm will be marked as DOWN. This is documented here:
The node will still appear in the node list, and marked as down. It no longer affects swarm operation, but a long list of down nodes can clutter the node list. To remove an inactive node from the list, use the node rm command.
https://docs.docker.com/engine/reference/commandline/swarm_leave/#extended-description
This is a request to add an option in swarmkit that would auto-remove nodes that have correctly left a swarm when the departing node leaves in an orderly fashion with docker swarm leave. (Also fine if that's the default behavior, if appropriate).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the swarm_leave extended-description documentation and the behavior of the node rm command. Trace how an orderly docker swarm leave marks a worker as DOWN, then determine the option's expected lifecycle and safety boundaries. Done means departed nodes are removed automatically without disrupting swarm operation, with behavior documented and tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100