File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3838# Each `gthread` worker process will use a pool of this many threads.
3939threads = 5
4040
41- # Load the app before the worker processes are forked, to reduce memory usage and boot times.
42- preload_app = True
43-
4441# Workers silent for more than this many seconds are killed and restarted.
4542# Note: This only affects the maximum request time when using the `sync` worker.
4643# For all other worker types it acts only as a worker heartbeat timeout.
6360 # Automatically restart gunicorn when the app source changes in development.
6461 reload = True
6562else :
63+ # Load the app before the worker processes are forked, to reduce memory usage and boot times.
64+ # We don't enable this in development, since it's incompatible with `reload = True`.
65+ preload_app = True
66+
6667 # Use `SO_REUSEPORT` on the listening socket, which allows for more even request
6768 # distribution between workers. See: https://lwn.net/Articles/542629/
6869 # We don't enable this in development, since it makes it harder to notice when
You can’t perform that action at this time.
0 commit comments