From dafb3ff392f1a9def754f3cc60179acb6f650011 Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Mon, 20 Jul 2020 12:36:31 +0200 Subject: [PATCH] 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. --- cmd/manager/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 7704c3ac1d..e0ccc96b85 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -70,7 +70,7 @@ func main() { leaderElectLeaseDuration := flag.Duration( "leader-elect-lease-duration", - 15*time.Second, + 90*time.Second, "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.", )