-
Notifications
You must be signed in to change notification settings - Fork 69
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
Adding healtcheck in docker compose file caused the container to fail #4
Comments
Hi @yaakov-berkovitch,
This mariadb-cluster image was especially designed to work with swarm mode. When doing the init_cluster stuff it tries to get the IPs of the other nodes. This check does not return anything or when doing it here
it fails with Why does it work sometime and sometimes not? |
Thanks your answer. |
Same problem. I would like to make a health check that the server is running and fully replicated and ready to accept new requests. |
Workaround: Use https://github.com/colinmollenhour/mariadb-galera-swarm with included work healtcheck. |
Hi,
I'm running docker 1.13 experimental and use compose file to deploy mariadb in cluster using your image.
The docker compose file looks like:
If i put the healthcheck test, the mariadb container failed after 10 sec, and the last line of the log shows:
/usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init_cluster_conf.sh
If I removed the healthcheck test, the mariadb container succeeds running.
BTW, the healthcheck is a dummy check and no matter what i put in the command it causes the container to fail.
Do you have any idea about the reason of the crash ? It works me fine for other container (not mariadb).
Thanks
The text was updated successfully, but these errors were encountered: