You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slow the default lease retry and renew rate for machine controller
Prevent machine controllers from writing in etcd at idle too often by
setting 120s lease, 20s retry and 110s deadline on all renewals. Higher
values cause tests to flake.
// The default durations for the leader election operations.
44
+
var (
45
+
leaseDuration=120*time.Second
46
+
renewDeadline=110*time.Second
47
+
retryPeriod=20*time.Second
48
+
)
49
+
43
50
funcmain() {
44
51
klog.InitFlags(nil)
45
52
@@ -76,7 +83,7 @@ func main() {
76
83
77
84
leaderElectLeaseDuration:=flag.Duration(
78
85
"leader-elect-lease-duration",
79
-
90*time.Second,
86
+
leaseDuration,
80
87
"The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.",
0 commit comments