-
Notifications
You must be signed in to change notification settings - Fork 171
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
Recommended way to self-heal crashed container (lock file) #289
Comments
Update: I played around with the init process (the Helm chart runs the This was my test snippet at the start of the container:
which prints |
@sdaschner In regular non-k8s docker, you can just delete the Could you re-create this issue on the github repo for the helm charts please? They'll be better able to answer your question / feature request. Thanks! |
Hi there 🙂 Not really a bug report (since it's expected behavior), but what is the recommended way to let a container with an attached volume self-heal from a crash?
Scenario
Lock file has been locked by another process: /data/databases/store_lock
, when the original process was killed and not properly stoppedIf I can ensure that the container/pod is the only one using that volume, is there a recommended way to clear the lock file at startup?
I understand that it makes sense from a concurrency perspective, but if the container runtime crashes unexpectedly, the pod can't come up again (
CrashLoopBackOff
) on its own, and has to manually be restarted...The text was updated successfully, but these errors were encountered: