-
Notifications
You must be signed in to change notification settings - Fork 373
Add health check to docker compose #141
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
Conversation
|
The healthcheck for the clickhouse is the recommended way of doing health check. Wait I'll benchmark it on my live server. |
Seems to be just a (possibly outdated) StackOverflow answer. Is there any official source recommending this exact approach? I'd think |
I can add these parameters (if you OK with fairly new docker compose requirement to The startup from last If
https://clickhouse.com/docs/en/interfaces/http
But both works and I see no difference in timing anyway. |
Yes, please do :) |
|
Added |
|
I tried it on my instance for the last week, and all was great. Thank you! |
|
Sorry to bother you, but it seems like pg_isready is using root user, can you please verify? Should we edit the healthcheck to use I'm reverting this PR for now to avoid confusing new users with these scary looking errors. |
|
Related to #146, but it's unlikely to be the cause. |
This reverts commit 43e8842.
|
Hello, sorry this change bothering you. I should really checking it from ground zero. Here's my exact setup I currently use. I use docker rootless setup though I'm skeptical it has any difference. Maybe the version difference could be the cause? |
|
This should be pretty easy to fix by just adding |
Added a health check so the service can heal from crashing by itself.