Skip to content

Commit

Permalink
Allow uWSGI process count to be overridden from environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
esmail committed Dec 17, 2016
1 parent 53aa205 commit d30c748
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ mount = $(KPI_PREFIX)=$(KPI_SRC_DIR)/kobo/wsgi.py

# process related settings
master = true

# Overrideable default of 2 uWSGI processes.
if-env = KPI_UWSGI_PROCESS_COUNT
processes = %(_)
endif =
if-not-env = KPI_UWSGI_PROCESS_COUNT
processes = 2
endif =

socket = 0.0.0.0:8000
buffer-size = 32768
Expand Down

0 comments on commit d30c748

Please sign in to comment.