-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Question: Restart if unhealthy for more than x mins? #78
Comments
Wouldn't it be more appropriate to set the health check configuration to only show unhealthy after those "few minutes"?
|
Understood, I don't think I will convince plex of changing it, but I'll give it a shot. :) Thanks again. |
With compose you can overwrite the default health check with your own to
extend the health check or what I do is script the optimize.
Stop autoheal
Optimize
Start autoheal
You're talking just a couple of minutes while the optimize completes.
Im not going to give away the code as I didn't write it and its not my
place to do so.
…On Thu, Feb 24, 2022, 07:23 edrock200 ***@***.***> wrote:
Understood, I don't think I will convince plex of changing it, but I'll
give it a shot. :) Thanks again.
—
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLOXCN3DDAUT5TAOFESMGDU4XFFPANCNFSM5LBN232A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Oh I already have a script that does that, would just be nice to extend the timeout via autoheal. For others that want to do it it's just a simple bash script:
Sub in your plex url and token and just cron that. |
Is it possible to configure autoheal to restart only if container is unhealthy for more than x mins? I have a container which has a db optimize routine which can sometimes make the container unresponsive and trigger an "unhealthy" state for a few minutes. As soon as it's done, the container goes healthy. Is there a way to tell autoheal "only restart if unhealthy for greater than x mins?" Thanks in advance.
Ed
The text was updated successfully, but these errors were encountered: