Skip to content

Commit

Permalink
controller: reuse threshold values
Browse files Browse the repository at this point in the history
Instead of differing thresholds for liveliness, staleness
for now set them to be the same, since this gives us enough buffer
before the Orchestrator reconcile kicks in
  • Loading branch information
joelrebel committed May 15, 2024
1 parent 270c28f commit cc3cfab
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions events/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ const (
pullEventTimeout = 5 * time.Second
// Default concurrency
concurrency = 2
// periodically publish an updated status
statusInterval = 30 * time.Second
// condition status considered stale after this period
StatusStaleThreshold = statusInterval * 4

// controller check in interval
checkinInterval = 30 * time.Second
// periodically publish an updated status
statusInterval = checkinInterval
// condition status considered stale after this period
StatusStaleThreshold = condition.StaleThreshold
// controller considered dead after this period
LivenessStaleThreshold = checkinInterval * 4
LivenessStaleThreshold = condition.StaleThreshold
// default number of KV replicas for created NATS buckets
kvReplicationFactor = 3
)
Expand Down

0 comments on commit cc3cfab

Please sign in to comment.