Skip to content

Commit 09c065b

Browse files
Merge pull request #426 from deads2k/tune-down-leader-election
Bug 1843505: Have the leader election use faster defaults
2 parents d2fc678 + af54374 commit 09c065b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkg/start/start.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ const (
4343

4444
minResyncPeriod = 2 * time.Minute
4545

46-
leaseDuration = 90 * time.Second
47-
renewDeadline = 45 * time.Second
48-
retryPeriod = 30 * time.Second
46+
// TODO set the slower lease values after we're able to reliably shut down gracefully. This fixes the slow status update for now.
47+
//leaseDuration = 90 * time.Second
48+
//renewDeadline = 45 * time.Second
49+
//retryPeriod = 30 * time.Second
50+
leaseDuration = 30 * time.Second
51+
renewDeadline = 15 * time.Second
52+
retryPeriod = 10 * time.Second
4953
)
5054

5155
// Options are the valid inputs to starting the CVO.

0 commit comments

Comments
 (0)