Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ SENTRY_BIND=9000
# SENTRY_MAIL_HOST=example.com
# Parallel taskworker processes (higher values increase memory usage; >32 not recommended)
SENTRY_TASKWORKER_CONCURRENCY=4
# Respawn the snuba-api worker once it exceeds this resident memory (MiB).
# Leave empty to disable the cap and let the worker grow unbounded.
SNUBA_API_WORKERS_MAX_RSS=1024
# Respawn the snuba-api worker after this many seconds, regardless of memory.
SNUBA_API_WORKERS_LIFETIME=86400
Comment on lines +15 to +19

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just set this value as the default on the docker-compose.yml?

SENTRY_IMAGE=ghcr.io/getsentry/sentry:nightly
SNUBA_IMAGE=ghcr.io/getsentry/snuba:nightly
RELAY_IMAGE=ghcr.io/getsentry/relay:nightly
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ x-snuba-defaults: &snuba_defaults
CLICKHOUSE_HOST: clickhouse
DEFAULT_BROKERS: "kafka:9092"
REDIS_HOST: redis
UWSGI_MAX_REQUESTS: "10000"
UWSGI_DISABLE_LOGGING: "true"
# Snuba serves the API with Granian, which leaves worker recycling off
# unless these are set. Leaving the values empty passes through whatever
# is set on the host system (or in the .env file).
SNUBA_API_WORKERS_MAX_RSS:
SNUBA_API_WORKERS_LIFETIME:
SENTRY_KAFKA_MAX_POLL_INTERVAL_MS:
# Leaving the value empty to just pass whatever is set
# on the host system (or in the .env file)
Expand Down
Loading