Skip to content

Commit

Permalink
Update the zstd for metrics default compression level to 1 (#29242)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Wakely <[email protected]>
  • Loading branch information
StephenWakely authored Sep 11, 2024
1 parent 3fa4f01 commit 27a68e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/config/setup/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ const (
// DefaultCompressorKind is the default compressor. Options available are 'zlib' and 'zstd'
DefaultCompressorKind = "zlib"

// DefaultZstdCompressionLevel should mirror the default compression level defined in https://github.com/DataDog/zstd/blob/1.x/zstd.go#L23
DefaultZstdCompressionLevel = 5
// DefaultZstdCompressionLevel is the default compression level for `zstd`.
// Compression level 1 provides the lowest compression ratio, but uses much less RSS especially
// in situations where we have a high value for `GOMAXPROCS`.
DefaultZstdCompressionLevel = 1

// DefaultLogsSenderBackoffFactor is the default logs sender backoff randomness factor
DefaultLogsSenderBackoffFactor = 2.0
Expand Down

0 comments on commit 27a68e2

Please sign in to comment.