Skip to content

Commit

Permalink
Increase timeout for DRA kubelet plugin client
Browse files Browse the repository at this point in the history
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 <kklues@nvidia.com>
  • Loading branch information
klueska committed Jul 18, 2023
1 parent 31d662e commit 0449cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubelet/cm/dra/plugin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0449cef

Please sign in to comment.