From 84e6c0ff7f7b73b657771092a75e041190a48b83 Mon Sep 17 00:00:00 2001 From: Dan Notestein <dan@syncad.com> Date: Thu, 19 Dec 2024 17:18:43 +0000 Subject: [PATCH] Allow hivemind's block processor 30s to shut down cleanly before killing it --- hivemind.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hivemind.yaml b/hivemind.yaml index 6aa8a1b..ac96fde 100644 --- a/hivemind.yaml +++ b/hivemind.yaml @@ -32,6 +32,14 @@ services: timeout: 2s retries: 10 start_period: 72h + # after requesting a shutdown with SIGTERM, allow the container 30 seconds to exit + # before killing it. + # Normally it will exit cleanly in a second or two, but it can take longer if it's + # in the middle of massive sync. When in massive sync, a forced shutdown can leave + # the hivemind database in an inconsistent state, requiring an uninstall/reinstall + # of hivemind to correct it. + stop_grace_period: 30s + stop_signal: SIGINT depends_on: haf: condition: service_healthy -- GitLab