Merge pull request #14285 from prometheus/superq/tune_gogc

Tune default GOGC
This commit is contained in:
Ben Kochie 2024-06-11 11:14:50 +02:00 committed by GitHub
commit 7f0caf7229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ var (
DefaultRuntimeConfig = RuntimeConfig{
// Go runtime tuning.
GoGC: 50,
GoGC: 75,
}
// DefaultScrapeConfig is the default scrape configuration.

View file

@ -125,7 +125,7 @@ runtime:
# Configure the Go garbage collector GOGC parameter
# See: https://tip.golang.org/doc/gc-guide#GOGC
# Lowering this number increases CPU usage.
[ gogc: <int> | default = 50 ]
[ gogc: <int> | default = 75 ]
# Rule files specifies a list of globs. Rules and alerts are read from
# all matching files.