Skip to content

Commit af54374

Browse files
committed
Have the leader election use faster defaults.
This resolves a problem where status doesn't reflect the payload actually being applied. wking is chasing an alternative using different graceful leader election rules. It would also be resolved by synchronously writing the status out when we start applying a new payload.
1 parent d2fc678 commit af54374

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)