@@ -40,12 +40,24 @@ Optional Configuration variables
4040- ` conf.name ` : The application name (machine name), the same as the Python app. Default: ` {{ project }} `
4141- ` conf.python_version ` : The python version to install (major.minor), default: ` 3.5 ` .
4242- ` conf.virtualenv_dir ` : Virtualenvs home directory, default to vars' respective option.
43- - ` conf.wsgi_script ` : The wsgi script, default: ` index.wsgi ` .
4443- ` conf.compile_msgs ` : Set to ` true ` in order to compile i18n messages.
4544- ` conf.memcached ` : Set to ` true ` in order to clear cache.
46- - ` conf.data ` : A list of the dump files to load data from, eg ` [project, auth] ` , omit to skip loaddata. Depends on ` loaddata ` variable to be ` true ` .
47- - ` conf.https_only ` : If true then configure Apache
48- [ only for SSL] ( https://github.com/Wtower/ansible-node-deploy/issues/6 ) . Default: ` false ` .
45+ - ` conf.data ` : A list of the dump files to load data from, eg ` [project, auth] ` , omit to skip loaddata.
46+ Depends on ` loaddata ` variable to be ` true ` .
47+
48+ [ WSGI] ( http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIDaemonProcess.html )
49+
50+ - ` conf.wsgi_script ` : The wsgi script, default: ` index.wsgi ` .
51+ - ` conf.wsgi_threads ` : If set mod_wsgi runs in daemon mode (** recommended** 3-25).
52+
53+ The following are used only for daemon mode:
54+
55+ - ` conf.wsgi_processes ` : If set mod_wsgi runs in multi-process mode (integer).
56+ - ` conf.wsgi_inactivity_timeout ` : Set only for small traffic sites to reset process and reclaim memory (eg. 300).
57+ - ` conf.wsgi_restart_interval ` : Set to let process restart after n seconds. Useful if process memory grows large.
58+ - ` conf.wsgi_max_requests ` : Similar to the above.
59+ - ` conf.wsgi_graceful_timeout ` : If any of the above two are set, the number of seconds to expect no requests to restart.
60+ - ` conf.wsgi_queue_timeout ` : If large request queues, drop requests after that many seconds.
4961
5062Other default variables
5163-----------------------
@@ -163,7 +175,11 @@ Task description
163175
164176 Reset target directory ownership to the appropriate Plesk permissions.
165177
166- 24 . Configure Apache
178+ 24 . Touch WSGI script
179+
180+ Update the timestamp. If WSGI daemon mode it causes restart of the process at next request.
181+
182+ 25 . Configure Apache
167183
168184 Configure Apache to execute the wsgi script using the provided template file.
169185 Only executes if a ` domain_name ` is provided.
0 commit comments