Skip to content

Commit

Permalink
manager.go: Extend mount timeout to 30 seconds
Browse files Browse the repository at this point in the history
k8s retries the NodeStageVolume calls wtih an exponential backoff, if we retry for longer internally the wall clock time will be longer until we get hit with a bad backoff (particularly interesting during failovers)
  • Loading branch information
silindbl-msft authored Aug 9, 2023
1 parent 7a49195 commit f68b966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/edgecache/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (m *Manager) callWithConnection(fun ConnectionUsingFunc, endpoint string) e

func (m *Manager) MountVolume(account string, container string, targetPath string) error {
return m.callWithConnection(func(conn grpc.ClientConnInterface) error {
return sendMount(csi_mounts.NewCSIMountsClient(conn), account, container, targetPath, 500*time.Millisecond, 5*time.Second)
return sendMount(csi_mounts.NewCSIMountsClient(conn), account, container, targetPath, 500*time.Millisecond, 30*time.Second)
}, m.mountEndpoint)
}

Expand Down

0 comments on commit f68b966

Please sign in to comment.