Skip to content

Commit 4c36fec

Browse files
author
Danil-Grigorev
committed
Increate leader election lease time
The machine-api-controller components are refreshing their lease more than all other components combined. Bringing this to 90s each, will decrease etcd writes at idle.
1 parent fe69c20 commit 4c36fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/manager/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func main() {
6262

6363
leaderElectLeaseDuration := flag.Duration(
6464
"leader-elect-lease-duration",
65-
15*time.Second,
65+
90*time.Second,
6666
"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.",
6767
)
6868
metricsAddress := flag.String(

0 commit comments

Comments
 (0)