From 631d7fa680d099243adcfaa845523da4e6891614 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 18 Nov 2026 15:33:53 -0500 Subject: [PATCH] Relax watchdog timing Some systems during startup especially may take a hit that crosses the threshold. Also, some IO hangs in select environments during certain activity can pause a while. Heartbeat 4 times per interval instead of 2. --- confluent_server/confluent/main.py | 2 +- confluent_server/systemd/confluent.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/main.py b/confluent_server/confluent/main.py index 0ef163a3..326f964e 100644 --- a/confluent_server/confluent/main.py +++ b/confluent_server/confluent/main.py @@ -380,7 +380,7 @@ async def asyncrun(args): watchdogsecs = int(os.environ.get('WATCHDOG_USEC', '0')) / 1000000 if not watchdogsecs: watchdogsecs = 200 - watchdogsecs = watchdogsecs / 2 + watchdogsecs = watchdogsecs / 4 if notifysock.startswith('@'): notifysock = '\0' + notifysock[1:] sock = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) diff --git a/confluent_server/systemd/confluent.service b/confluent_server/systemd/confluent.service index 1ceb3364..97e0ea4c 100644 --- a/confluent_server/systemd/confluent.service +++ b/confluent_server/systemd/confluent.service @@ -6,7 +6,7 @@ Description=Confluent hardware manager [Service] Type=notify NotifyAccess=main -WatchdogSec=30s +WatchdogSec=300s RuntimeDirectory=confluent CacheDirectory=confluent LogsDirectory=confluent