mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 15:24:22 +00:00
fix(app): cap Celery worker concurrency in the Helm chart (#12054)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
294e665d9e
commit
6b21e31a28
1 file changed
+5
@@ -189,6 +189,11 @@ api:
|
||||
DJANGO_STALE_WHILE_REVALIDATE: "60"
|
||||
DJANGO_MANAGE_DB_PARTITIONS: "True"
|
||||
DJANGO_BROKER_VISIBILITY_TIMEOUT: "86400"
|
||||
# Caps the Celery prefork pool size on the worker pods. Without it, Celery
|
||||
# sizes the pool from the number of visible CPUs, so on large nodes the
|
||||
# worker spawns one child per CPU, each loading the full Prowler SDK, and
|
||||
# OOMKills under memory pressure. Raise it on bigger workers.
|
||||
DJANGO_CELERY_WORKER_CONCURRENCY: "2"
|
||||
|
||||
# Secret names to be used as env vars for api, worker, and worker_beat.
|
||||
secrets: []
|
||||
|
||||
Reference in new issue
Block a user