summaryrefslogtreecommitdiffstats
path: root/ansible/roles/configure_uwsgi/templates/yardstick.ini.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/configure_uwsgi/templates/yardstick.ini.j2')
-rw-r--r--ansible/roles/configure_uwsgi/templates/yardstick.ini.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/ansible/roles/configure_uwsgi/templates/yardstick.ini.j2 b/ansible/roles/configure_uwsgi/templates/yardstick.ini.j2
new file mode 100644
index 000000000..c049daf84
--- /dev/null
+++ b/ansible/roles/configure_uwsgi/templates/yardstick.ini.j2
@@ -0,0 +1,18 @@
+[uwsgi]
+master = true
+debug = true
+chdir = {{ yardstick_dir }}api
+module = server
+plugins = python
+processes = 10
+threads = 5
+async = true
+max-requests = 5000
+chmod-socket = 666
+callable = app_wrapper
+enable-threads = true
+close-on-exec = 1
+daemonize = {{ log_dir }}uwsgi.log
+socket = {{ socket_file }}
+{# If virtual environment, we need to add:
+ virtualenv = <virtual_env> #} \ No newline at end of file