From 479bf5bc3a819272f4010a8e51b0c52a163f6113 Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Mon, 20 Jul 2020 12:50:19 +0200 Subject: [PATCH] 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. --- 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 542889390..7fc681e44 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -75,7 +75,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.", ) flag.Parse()