Skip to content

Commit

Permalink
Add worker memory limit (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamuzakki committed Sep 12, 2024
1 parent eccf6e4 commit 5b057ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deployment/.template.env
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ DEFAULT_FROM_EMAIL=
EMAIL_BACKEND=core.resend_email_backend.ResendBackend

# if core.resend_email_backend.ResendBackend
RESEND_API_KEY=
RESEND_API_KEY=

# Max memory used by worker, default to 3GB
WORKER_MEM_LIMIT=3g
1 change: 1 addition & 0 deletions deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ services:
- db
- minio
- redis
mem_limit: ${WORKER_MEM_LIMIT:-3g}

dev:
image: kartoza/${COMPOSE_PROJECT_NAME:-django_project}_dev
Expand Down

0 comments on commit 5b057ee

Please sign in to comment.