mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-19 08:52:20 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -6,7 +6,7 @@ Description=Confluent hardware manager
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=main
|
||||
WatchdogSec=30s
|
||||
WatchdogSec=300s
|
||||
RuntimeDirectory=confluent
|
||||
CacheDirectory=confluent
|
||||
LogsDirectory=confluent
|
||||
|
||||
Reference in New Issue
Block a user