Skip to content

Commit

Permalink
Add MAX_BUFFER_CACHE_MONITORING_GB configuration variable (#650)
Browse files Browse the repository at this point in the history
This adds the equivalent of the ini-style setting
"max_buffer_cache_monitoring_gb" for the environment-based settings,
which was missed when the setting was first added.
  • Loading branch information
lfittl authored Dec 28, 2024
1 parent c6ff5b6 commit 85673fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ func getDefaultConfig() *ServerConfig {
if skipIfReplica := os.Getenv("SKIP_IF_REPLICA"); skipIfReplica != "" {
config.SkipIfReplica = parseConfigBool(skipIfReplica)
}
if maxBufferCacheMonitoringGB := os.Getenv("MAX_BUFFER_CACHE_MONITORING_GB"); maxBufferCacheMonitoringGB != "" {
config.MaxBufferCacheMonitoringGB, _ = strconv.Atoi(maxBufferCacheMonitoringGB)
}
if filterLogSecret := os.Getenv("FILTER_LOG_SECRET"); filterLogSecret != "" {
config.FilterLogSecret = filterLogSecret
} else {
Expand Down

0 comments on commit 85673fb

Please sign in to comment.