Skip to content
Merged
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
7 changes: 4 additions & 3 deletions gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
# Each `gthread` worker process will use a pool of this many threads.
threads = 5

# Load the app before the worker processes are forked, to reduce memory usage and boot times.
preload_app = True

# Workers silent for more than this many seconds are killed and restarted.
# Note: This only affects the maximum request time when using the `sync` worker.
# For all other worker types it acts only as a worker heartbeat timeout.
Expand All @@ -63,6 +60,10 @@
# Automatically restart gunicorn when the app source changes in development.
reload = True
else:
# Load the app before the worker processes are forked, to reduce memory usage and boot times.
# We don't enable this in development, since it's incompatible with `reload = True`.
preload_app = True

# Use `SO_REUSEPORT` on the listening socket, which allows for more even request
# distribution between workers. See: https://lwn.net/Articles/542629/
# We don't enable this in development, since it makes it harder to notice when
Expand Down