From 1488e37321751c94c8da026b860c0ced2da9088e Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 26 May 2023 15:26:12 -0400 Subject: [PATCH] Increase WatchdogInterval and WatchdogThreshold Quick workaround for customer, we should add these to the config file. refs #20595 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- lib/crunchrun/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crunchrun/docker.go b/lib/crunchrun/docker.go index 8d8cdfc8ba..b402637e91 100644 --- a/lib/crunchrun/docker.go +++ b/lib/crunchrun/docker.go @@ -34,7 +34,7 @@ const DockerAPIVersion = "1.35" // Number of consecutive "inspect container" failures before // concluding Docker is unresponsive, giving up, and cancelling the // container. -const dockerWatchdogThreshold = 3 +const dockerWatchdogThreshold = 5 type dockerExecutor struct { containerUUID string @@ -52,7 +52,7 @@ func newDockerExecutor(containerUUID string, logf func(string, ...interface{}), // currently the minimum version we want to support. client, err := dockerclient.NewClient(dockerclient.DefaultDockerHost, DockerAPIVersion, nil, nil) if watchdogInterval < 1 { - watchdogInterval = time.Minute + watchdogInterval = time.Minute * 2 } return &dockerExecutor{ containerUUID: containerUUID, -- 2.30.2