-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Downscaling causes whole stack to shutdown #1107
Comments
I'd like to know also, it was unexpected for me and I can't seem to find that behavior described |
It sounds like it's the behaviour of Does this happen when containers are run in the background with |
No. I have tested and it only happens when you do not run in detached mode. |
Right, as I suspected. I think we should definitely not shut down containers in |
I think if we start However, if a container dies while there are at least one more of the same type (that is, scaled to >1), then I think the rest of the containers should continue. But there might be a case where a setup would expect at least N of the same containers (scaled to N) to be running, then it might make sense if one container dies, the whole stack dies as well. |
Fixed by #1754 |
If you start a compose stack with one of the items with
n
nodes and then downgrade to anything<n
nodes, the console will output that one of the nodes had quit witherror code 137
and gracefully stop everything.However, if you start with
n
nodes, upscale to>n
nodes then downscale ton
nodes, everything works as intended and the stack will not crash.Example:
Then (everything is scale=1)
This works, scales, and stops as expected. However after the previous command (that is, when the last scale value for web is 10), if you execute the following
This will say
somenode_1 exited with code 137
and gracefully stop the whole thing.Is this the intended behavior?
The text was updated successfully, but these errors were encountered: