Skip to content

Commit

Permalink
chore(flamegraph): Lower number of concurrent reads
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Zylphrex committed Nov 29, 2024
1 parent 6eb8e55 commit 54704e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vroom/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down

0 comments on commit 54704e3

Please sign in to comment.