Skip to content

Commit dafb3ff

Browse files
author
Danil-Grigorev
committed
Increase 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 b3f366f commit dafb3ff

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
@@ -70,7 +70,7 @@ func main() {
7070

7171
leaderElectLeaseDuration := flag.Duration(
7272
"leader-elect-lease-duration",
73-
15*time.Second,
73+
90*time.Second,
7474
"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.",
7575
)
7676

0 commit comments

Comments
 (0)