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

integrate stack files into one for faster deployment #2

Closed
phish108 opened this issue May 22, 2023 · 2 comments
Closed

integrate stack files into one for faster deployment #2

phish108 opened this issue May 22, 2023 · 2 comments
Assignees
Milestone

Comments

@phish108
Copy link
Contributor

The integration testing uses a single stack file, but the deployment uses separate stack files. This separation is unnecessary, as only those parts of the stack are updated that have changed due to the internal docker states.

@phish108 phish108 self-assigned this May 22, 2023
@phish108 phish108 added this to the Jun2023 milestone May 22, 2023
@phish108
Copy link
Contributor Author

While working on this issue after one of the hosts crashed, I came across docker/cli#3880

This means that all services that depend on the database need to throttle because docker will not handle dependencies between services at this point

@phish108
Copy link
Contributor Author

The solution is to deploy the database as a separate stack.

This strategy allows the initializer to complete before the main stack will be deployed. Ansible ensures that both services are up before completing the task and starts deploying the rest.

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