Skip to content

Commit

Permalink
Add delay for start of buffer monitoring (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
kramvan1 committed Feb 28, 2024
1 parent 944488a commit 0014ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/key_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (v3kp *v3KeyProcessor) processKey(key string, value *string, api readAPI, l
}

func (v3kp *v3KeyProcessor) bufferCapacitySampler(logger *zap.Logger) {
time.Sleep(5 * time.Minute) // Wait until pod startup has settled down
for {
time.Sleep(time.Minute)
remainingBuffer := cap(v3kp.kpChannel) - len(v3kp.kpChannel)
Expand Down

0 comments on commit 0014ee5

Please sign in to comment.