-
Notifications
You must be signed in to change notification settings - Fork 24
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
Docker healthchecks #3606
Docker healthchecks #3606
Conversation
command: | ||
- fossildb | ||
- -c | ||
- skeletons,skeletonUpdates,volumes,volumeData,volumeUpdates | ||
user: ${USER_UID:-fossildb}:${USER_GID:-fossildb} | ||
healthcheck: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required anymore, because it is defined in fossildb's Dockerfile
@@ -16,5 +16,11 @@ RUN chown -R webknossos . \ | |||
|
|||
USER webknossos | |||
|
|||
HEALTHCHECK \ | |||
--interval=1m --timeout=5s --retries=10 \ | |||
CMD curl --fail http://localhost:9090/data/health || exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really weird that docker allows the exit-code to be only 0 or 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tracingstore healthcheck does not work yet, the others look fine.
Logs from the tracingstore, but reported unhealthy
:
…
webknossos-tracingstore_1 | 2019-01-09 09:18:52,238 [INFO] - Slf4jLogger started
webknossos-tracingstore_1 | 2019-01-09 09:18:53,582 [INFO] - Slf4jLogger started
webknossos-tracingstore_1 | 2019-01-09 09:18:54,539 [INFO] - Successfully tested FossilDB health at fossildb:7155. Reply: SERVING
Co-Authored-By: normanrz <[email protected]>
Co-Authored-By: normanrz <[email protected]>
Steps to test:
DOCKER_TAG=docker-health__7392 docker-compose pull webknossos webknossos-datastore webknossos-tracingstore
DOCKER_TAG=docker-health__7392 docker-compose up webknossos webknossos-datastore webknossos-tracingstore
docker ps
whether all services are reported healthy (after ~1min each)Issues:
- [ ] Updated migration guide if applicable- [ ] Updated documentation if applicable