Permalink
Browse files

update uwsgi config to not allocate threads, closes #273

  • Loading branch information...
jeffbryner committed May 14, 2015
1 parent ea36391 commit 64327d14dcb5ba26d8a55a7c6f95542febcb043e
Showing with 14 additions and 6 deletions.
  1. +13 −4 loginput/uwsgi.ini
  2. +1 −2 rest/uwsgi.ini
View
@@ -1,14 +1,23 @@
[uwsgi]
plugins=/home/mozdef/envs/mozdef/bin/python
-processes = 10
-threads = 2
+chdir = /home/mozdef/envs/mozdef/loginput/
+uid = mozdef
+processes = 10
stats = 127.0.0.1:9191
-py-auto-reload=30s
+;py-auto-reload=30s
daemonize = /home/mozdef/envs/mozdef/logs/uwsgi.loginput.log
;ignore normal operations that generate nothing but a 200 response
log-drain = generated 0 bytes
-log-date
+log-date= %%a %%b %%d %%H:%%M:%%S
socket = /home/mozdef/envs/mozdef/loginput/uwsgi.socket
wsgi-file = /home/mozdef/envs/mozdef/loginput/index.py
+pyargv = -c /home/mozdef/envs/mozdef/loginput/index.conf
virtualenv = /home/mozdef/envs/mozdef/
master-fifo = /home/mozdef/envs/mozdef/loginput/uwsgi.fifo
+never-swap
+pidfile= /home/mozdef/envs/mozdef/loginput/uwsgi.pid
+vacuum = true
+reload-on-exception
+master
+listen=100
+ignore-sigpipe
View
@@ -3,7 +3,6 @@ plugins=/home/mozdef/envs/mozdef/bin/python
chdir = /home/mozdef/envs/mozdef/rest/
uid = mozdef
processes = 4
-threads = 2
;stats = 127.0.0.1:9193
;py-auto-reload=30s
daemonize = /home/mozdef/envs/mozdef/logs/uwsgi.rest.log
@@ -17,4 +16,4 @@ master-fifo = /home/mozdef/envs/mozdef/rest/uwsgi.fifo
pyargv= -c /home/mozdef/envs/mozdef/rest/index.conf
never-swap
pidfile= /home/mozdef/envs/mozdef/rest/uwsgi.pid
-vacuum = true
+vacuum = true

0 comments on commit 64327d1

Please sign in to comment.