Skip to content

Commit

Permalink
netflow - add comment about default queue size value
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Bradley <[email protected]>
  • Loading branch information
dlopes7 and evan-bradley authored Jan 2, 2025
1 parent ebfa73d commit 86701b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions receiver/netflowreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import (
const (
defaultSockets = 1
defaultWorkers = 2
// The default UDP packet buffer size in GoFlow2 is 9000 bytes, which means
// that for a full queue of 1000 messages, the size in memory will be 9MB.
// Source: https://github.com/netsampler/goflow2/blob/v2.2.1/README.md#security-notes-and-assumptions
defaultQueueSize = 1_000
)

Expand Down

0 comments on commit 86701b9

Please sign in to comment.