Skip to content

Commit

Permalink
Increate leader election lease time
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Danil-Grigorev committed Jul 20, 2020
1 parent c71ec2f commit 8c87213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/manager/main.go
Expand Up @@ -44,7 +44,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.",
)

Expand Down

0 comments on commit 8c87213

Please sign in to comment.