From 0449cef8fd5217d394c5cd331d852bd50983e6b3 Mon Sep 17 00:00:00 2001 From: Kevin Klues Date: Tue, 18 Jul 2023 22:45:01 +0100 Subject: [PATCH] Increase timeout for DRA kubelet plugin client The 10 second timeout was too low. Given that the retry loop for the kubelet itself is 90s, increasing the timeout to half of this seems reasonable. Ideally we would pull in the variable that sets the retry timeout to 90s and then just set our local timeout to half of that. Unfortunately, this is not exported, so we settle (for now with just explicitly setting it to 45s. Signed-off-by: Kevin Klues --- pkg/kubelet/cm/dra/plugin/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/cm/dra/plugin/client.go b/pkg/kubelet/cm/dra/plugin/client.go index f926be1f57e..a18dcba2172 100644 --- a/pkg/kubelet/cm/dra/plugin/client.go +++ b/pkg/kubelet/cm/dra/plugin/client.go @@ -34,7 +34,7 @@ import ( drapb "k8s.io/kubelet/pkg/apis/dra/v1alpha3" ) -const PluginClientTimeout = 10 * time.Second +const PluginClientTimeout = 45 * time.Second // Strongly typed address. type draAddr string