Commit 2c17ec36 by Feanil Patel

Change default gunicorn worker class.

Since the ecommerce app makes a lot of API calls, async workers are better
suited for this work.
parent af025b58
......@@ -56,6 +56,7 @@ ECOMMERCE_CYBERSOURCE_PROFILE_ID: 'SET-ME-PLEASE'
ECOMMERCE_CYBERSOURCE_ACCESS_KEY: 'SET-ME-PLEASE'
ECOMMERCE_CYBERSOURCE_SECRET_KEY: 'SET-ME-PLEASE'
ECOMMERCE_SERVICE_CONFIG:
SECRET_KEY: '{{ ECOMMERCE_SECRET_KEY }}'
TIME_ZONE: '{{ ECOMMERCE_TIME_ZONE }}'
......@@ -115,6 +116,7 @@ ECOMMERCE_REPOS:
ECOMMERCE_GUNICORN_WORKERS: "2"
ECOMMERCE_GUNICORN_EXTRA: ""
ECOMMERCE_GUNICORN_EXTRA_CONF: ""
ECOMMERCE_GUNICORN_WORKER_CLASS: "gevent"
#
# vars are namespace with the module name.
......
......@@ -6,6 +6,7 @@ gunicorn configuration file: http://docs.gunicorn.org/en/develop/configure.html
timeout = {{ ecommerce_gunicorn_timeout }}
bind = "{{ ecommerce_gunicorn_host }}:{{ ecommerce_gunicorn_port }}"
pythonpath = "{{ ecommerce_code_dir }}"
workers = {{ ECOMMERCE_GUNICORN_WORKERS }}
workers = {{ ECOMMERCE_GUNICORN_WORKERS }}"
worker_class = "{{ ECOMMERCE_GUNICORN_WORKER_CLASS }}"
{{ ECOMMERCE_GUNICORN_EXTRA_CONF }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment