https://bugzilla.redhat.com/show_bug.cgi?id=1834731



--- Comment #81 from Warren Togami <[email protected]> ---
(In reply to Warren Togami from comment #77)
> Regarding bitcoin.service:
> 
> Restart=on-failure
> TimeoutStopSec=120
> TimeoutStartSec=60
> StartLimitInterval=240
> StartLimitBurst=5
> 
> There exists a corner case where "stop" can take significantly more time
> than any amount hardcoded here. Force kill in that situation causes data
> corruption and an even more time consuming recovery the next time indexing
> begins again. I asked my engineers here if they came up with a better way to
> detect a safe stop.

PrivateTmp=true
TimeoutStopSec=1200s
TimeoutStartSec=5s
# Fail when 10 tries within 1 minute fail (never)
StartLimitInterval=60s
StartLimitBurst=10
# Limit attempts to 1 per 10 seconds
Restart=always
RestartSec=10

This is what we've been using in prod here. We didn't find a more intelligent
solution. Under normal operation it stops relatively fast but in rare
situations it needs the extra time to cleanly shut down.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to