Files

56 lines
1.4 KiB
INI

[uwsgi]
#application's base folder
chdir = /var/www/webapp/
#python module to import
app = telemetryui
module = %(app)
#socket file's location
socket = /var/www/webapp/socket/%n.sock
#permissions for the socket file
chmod-socket = 666
#the variable that holds a flask application inside the module imported at line #6
callable = app
processes = 4
threads = 2
#enable thread support.Need to figure out the optimal no of threads.
enable-threads = true
#location of log files
logto = /var/www/webapp/log/%n.log
#maximum size of log file before rotation (100MB)
log-maxsize = 104857600
#backup log file (created after rotation)
log-backupname = /var/www/webapp/log/%n.log.bk
#if request takes more than this parameter(in sec), request will be dropped
harakiri = 60
#respawn processes after serving 5000 requests
max-requests = 5000
#get verbose logs when a process gets stuck
harakiri-verbose = true
#http://uwsgi-docs.readthedocs.org/en/latest/Tracebacker.html#combining-the-tracebacker-with-harakiri
#Traceback is automatically logged during harakiri phase.
py-tracebacker=telemetryuisocket
#enable stats. Use this for fine-tuning no of processes.
#connect uwsgitop to the stats socket as: uwsgitop /tmp/telemetryuistats.socket
stats=/tmp/telemetryuistats.socket
#for asynchronous processing
spooler = %(chdir)/uwsgi-spool
#default size is TOO LOW
buffer-size = 8192