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

Upgrade workflow - improvements #19

Open
dgritsayqm opened this issue Jun 12, 2019 · 0 comments
Open

Upgrade workflow - improvements #19

dgritsayqm opened this issue Jun 12, 2019 · 0 comments
Assignees

Comments

@dgritsayqm
Copy link
Contributor

This is an idea of how to improve upgrade logic in order to reduce downtime while the upgrade of docker container-based solutions.

Currently, if we've got a new specification we are doing the next steps:

  • Identify that there is a new image version in received spec.
  • Stop corresponded containers
  • Run docker-compose with the received spec in order to have a solution upgraded.

In case if there is no new image located on the host machine while running docker-compose such image has to be pulled from the docker registry. This means that the upgrade time depends on the size of the new image and download speed. We could improve the logic by adding new steps to the current upgrade workflow.

  • Identify that there is a new image version in received spec.
  • Check if there is a new image version present on the host machine
  • If no, pull new images using docker-API by Patrao Agent
  • When new images are pulled, stop corresponded containers
  • Run docker-compose ....

In such a case, downtime will be reduced on time which Patrao Agent spent on image pulling.

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

2 participants