-
Notifications
You must be signed in to change notification settings - Fork 229
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
Add healthcheck #47
base: develop
Are you sure you want to change the base?
Add healthcheck #47
Conversation
LGTM. Thank you for your contribution! I'll merge momentarily. |
hi @ehough - the only thing i wasnt 100% sure about is the optimal settings for retry etc - these seemed reasonable defaults - but not sure |
i guess the issue with the grace period is significant here |
OK I think I spoke too soon. The problem is that
So This image does a ton of error checking during boot up, so I think if Would you be interested in updating this PR to instead check for
I haven't forgotten about #44. I was testing it this weekend and I kept crashing my laptop (it's running El Capitan, which has major issues with NFSv4). Stand by for updates there. |
wierd, i tested this when i made the PR and have been using it since. Not sure what i must have tested 8/ .
sure |
after a little playing with this, i have come to the conclusion that this healthcheck should probs not be added to the base image, for a few reasons
i had a quick look at the checks in the also worth mentioning - https://www.ibm.com/support/pages/understanding-nfs-health-check-datapower - although it seems only tangentially helpful |
try this:
compared to:
this was wrong - further testing shows it was expanding the |
although not sure 8/
|
this seems to work, but not sure about performance or how reliable
edit: i dont seem to be able to get this to work even with successfully exported dirs - i think because |
@ehough shall i close this? i think its probs best to leave to individual setups etc |
I think
exportfs
provides a fairly reliable way to check whether the container is healthy, so it seems to me make sense to add the healthcheck in the image - ie the healthcheck doesnt require any runtime vars