From 99745f4624b3c0815b6f60d5b34df4bda4bb90e3 Mon Sep 17 00:00:00 2001 From: Emory P Date: Sat, 14 Dec 2013 17:15:39 -0500 Subject: [PATCH] remove profiling on folder scan method and more reasonable uwsgi ini file --- scanner.py | 3 --- supysonic.ini | 10 ++++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/scanner.py b/scanner.py index f16aa19..9353beb 100755 --- a/scanner.py +++ b/scanner.py @@ -8,8 +8,6 @@ import math import sys, traceback from web import app -from profilehooks import profile - class Scanner: def __init__(self, session): self.__session = session @@ -80,7 +78,6 @@ class Scanner: self.__cleanup_folder(folder) - @profile def __scan_file(self, path, folder): curmtime = int(math.floor(os.path.getmtime(path))) diff --git a/supysonic.ini b/supysonic.ini index 60fb3a3..3f91760 100755 --- a/supysonic.ini +++ b/supysonic.ini @@ -1,10 +1,12 @@ [uwsgi] socket = /tmp/supysonic.sock - wsgi-file = /home/emory/supysonic/main.wsgi + wsgi-file = main.wsgi master = true - processes = 4 - threads = 2 - uid = 1000 vacuum = true chmod-socket = 666 + touch-reload = /tmp/supysonic.reload + enable-threads = true + processes = 8 + harakiri = 60 + daemonize