Arreglo/healthcheck kimai #14
+2
-2
@@ -41,9 +41,9 @@ services:
|
||||
- db
|
||||
entrypoint: /docker-entrypoint.sh
|
||||
healthcheck:
|
||||
test: curl -s -o /dev/null http://localhost:8001 || exit 1
|
||||
test: curl -fsS -o /dev/null http://localhost:8001 || exit 1
|
||||
|
|
||||
interval: 30s
|
||||
start_period: 3m
|
||||
start_period: 20m
|
||||
|
fauno
commented
does this mean it may take 20m for the whole recipe to deploy? does this mean it may take 20m for the whole recipe to deploy?
ChasquiLabo
commented
no, it doesn't. For me the first migration took more than 10m, thats way the big 20m. no, it doesn't. For me the first migration took more than 10m, thats way the big 20m.
moritz
commented
The healthcheck is just waiting 20m before it starts to restart the container. This value must be high enough, that even on low power systems the healthcheck isn't breaking anything. The only disadvantage is, that if the container is really stuck it takes 20m until it restarts. The healthcheck is just waiting 20m before it starts to restart the container. This value must be high enough, that even on low power systems the healthcheck isn't breaking anything. The only disadvantage is, that if the container is really stuck it takes 20m until it restarts.
ChasquiLabo
commented
20 min goes flying. With all the time coopcloud saves, this shouldn´t be call a disadvantege <3 20 min goes flying. With all the time coopcloud saves, this shouldn´t be call a disadvantege <3
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
deploy:
|
||||
|
||||
Reference in New Issue
Block a user
@moritz just a comment on this! if
curlis going to exit > 0 on failure, the|| exit 1is redundant, unless the healthcheck expects only 1 instead of > 0. which makes me think we'll need to review every healthcheck, for redundancy and missing-fflagI'm not sure what the healthcheck expects but I think
|| exit 1is redundant, as most recipes don't have it. But some do. Maybe it's just copy pasta. I would favor a default healthcheck for all recipies, if possible.Here is just an overview of all curl healthchecks: