From 54704e35ed00dea2b8e5c2d47a6aa35e131e5954 Mon Sep 17 00:00:00 2001 From: Tony Xiao Date: Fri, 29 Nov 2024 15:56:08 -0500 Subject: [PATCH] chore(flamegraph): Lower number of concurrent reads The new flamegraph endpoint is very likely the suspect of the OOMs we've been seeing. Upon examining the old flamegraph endpoint, we used to spawn ~25 go routines per request but at a lower throughput. So having 100 concurrent workers may be the cause of the OOMs as we try to read too many profiles at once. --- cmd/vroom/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/vroom/config.go b/cmd/vroom/config.go index f6bb2a8..1ee75ba 100644 --- a/cmd/vroom/config.go +++ b/cmd/vroom/config.go @@ -4,7 +4,7 @@ type ( ServiceConfig struct { Environment string `env:"SENTRY_ENVIRONMENT" env-default:"development"` Port int `env:"PORT" env-default:"8085"` - WorkerPoolSize int `env:"WORKER_POOL_SIZE" env-default:"100"` + WorkerPoolSize int `env:"WORKER_POOL_SIZE" env-default:"25"` SentryDSN string `env:"SENTRY_DSN"`