diff --git a/restart b/restart index 5570e791c..9fc41563f 100644 --- a/restart +++ b/restart @@ -1,3 +1,3 @@ source /env killall gunicorn -gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 10000 --max-requests-jitter 500 \ No newline at end of file +gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 1000 --max-requests-jitter 500 \ No newline at end of file diff --git a/setup b/setup index d08940c10..be7a58954 100644 --- a/setup +++ b/setup @@ -16,4 +16,4 @@ sudo apt -y install ffmpeg mkdir /songs cp ./env /env . /env -gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 10000 --max-requests-jitter 500 \ No newline at end of file +gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 1000 --max-requests-jitter 500 \ No newline at end of file diff --git a/supervisord.conf b/supervisord.conf index 49abc78ac..514e614ce 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -5,7 +5,7 @@ logfile=/tmp/supervisord.log [program:service] directory=/service -command=gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 10000 --max-requests-jitter 500 +command=gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 1000 --max-requests-jitter 500 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr