Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove obsolete containers first on scale down #12272

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Nov 6, 2024

What I did
As we scale down, always remove obsolete containers first, then highest-numbers.
Doing so

  1. we enforce containers added with --no-recreate will replace the obsolete ones (offering some kind of hand-managed rolling upgrade) - added test case to cover this scenario
  2. we (try to) keep replica number low

Related issue
fix #11781

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested review from a team and glours and removed request for a team November 12, 2024 08:44
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours merged commit 2f65ace into docker:main Nov 12, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Scale down sorts by obsolete status but stops/removes containers in the reverse order
2 participants