wilfred-s commented on code in PR #1062:
URL: https://github.com/apache/yunikorn-k8shim/pull/1062#discussion_r3794014345
##########
pkg/cache/task.go:
##########
@@ -39,6 +41,15 @@ import (
"github.com/apache/yunikorn-scheduler-interface/lib/go/si"
)
+// retryBackoff controls the retry schedule for binding pod volumes and
binding the
+// pod to a node. Declared as a package variable so tests can shorten it.
+var retryBackoff = wait.Backoff{
+ Steps: 8, // total time is 1 + 2 + 4 + 8 + 16 + 30 + 30 + 30 = 121
seconds
+ Duration: time.Second,
+ Factor: 2,
+ Cap: 30 * time.Second,
+}
Review Comment:
If we leave it at 30 steps as it was before we are adding another 22 * 30
seconds == 11 minutes. 8 retries with the backoff for API errors should be good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]