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

Containers overlapping when swarm-sync service updated #12

Open
kevb opened this issue May 1, 2019 · 0 comments
Open

Containers overlapping when swarm-sync service updated #12

kevb opened this issue May 1, 2019 · 0 comments

Comments

@kevb
Copy link
Collaborator

kevb commented May 1, 2019

When swarm-sync itself is updated, it receives a SIGTERM and will wait until the current update cycle is complete to exit.

The service is by default deployed with stop-first update strategy meaning the new container for the updated swarm-sync should not start until the earlier one has completed.

However, I am seeing 2 containers running at the same time:

e1055a821402        swarmpack/swarm-sync:v0.1.43                       "./start.sh"             About a minute ago   Up 10 seconds       80/tcp                    tools_swarm-sync.1.y3o84m5je7b1ce3vhitl879nh
a3a96b39469c        swarmpack/swarm-sync:v0.1.45                       "./start.sh"             About a minute ago   Up About a minute   80/tcp                    tools_swarm-sync.1.s72a0tkgwusaml54u7q7jodf0

Both containers are up and this causes a big problem because the state of the earlier one has not been saved yet, and the new one starts to do the same tasks causing a repeating loop of swarm-sync updates which eventually resolve by chance of one completing fast enough to prevent this.

I will try to create a demo project to explore the issue further...

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

No branches or pull requests

1 participant