Skip to content

Commit ff486b3

Browse files
committed
Add option to configure the number of gunicorn workers to spawn
1 parent 8c7a9e0 commit ff486b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

config/prod.env

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,10 @@ FROM_EMAIL='wger Workout Manager <[email protected]>'
164164
# The number of proxies in front of the application. In the default configuration
165165
# only nginx is. Change as approtriate if your setup differs. Also note that this
166166
# is only used when throttling API requests.
167-
NUMBER_OF_PROXIES=1
167+
NUMBER_OF_PROXIES=1
168+
169+
#
170+
# Gunicorn
171+
# The number of workers to spawn. This is the number of processes that will be
172+
# spawned to handle requests. The recommended number of workers is (2 x $num_cores) + 1
173+
GUNICORN_WORKERS=3

0 commit comments

Comments
 (0)