Make ensure_stack_deployed more reliable #177
Reference in New Issue
Block a user
No description provided.
Delete Branch "improved-stack-deploy-guarantees"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes https://git.autonomic.zone/coop-cloud/abra/issues/165.
Cases to be solved from my testing:
Overall goals are: make it work and keep it fast.
All of these will rely on healthchecks on each container, so, we need to implement them in all our apps and make them standard from now on, unfortunately...but I am getting better at understanding how they work! I have hope.
Seems like a default new
deploy: ...configuration is emerging:Where you ensure that the service won't be in a restart loop forever.
f151018f10toc7f838178cIt seems a core element of making this run fast is configuring the healthcheck:
The default settings are really default. A redis container is up in like 3 seconds but the first healthcheck won't run until 30 seconds. So by tailoring each of these values to some better default, we can get speedy deployments and
abradoesn't have to manage it. It pushes the complexity to swarm itself which is ideal.Also:
c7f838178cto4ed9f119d84ed9f119d8to7322105fd97322105fd9to4593451dab4593451dabto62999a1732OK, I'm gonna merge this as is now, one edge case is still not covered. Example output:
62999a1732todccfff0c87dccfff0c87to93714a593bWIP: make ensure_stack_deployed reliableto Make ensure_stack_deployed more reliable