Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the zstd for metrics default compression level to 1 #29242

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading