]> git.parisson.com Git - telemeta.git/commitdiff
increase thread number and buffersize
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 20 Mar 2024 09:07:40 +0000 (10:07 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 20 Mar 2024 09:07:40 +0000 (10:07 +0100)
app/scripts/app.sh

index 322722499a459682eddfbd95508186fa65f197fa..886b10ac364c09f0bda706df012b65d3729a69e7 100644 (file)
@@ -11,12 +11,12 @@ log='/var/log/uwsgi/app.log'
 
 # uwsgi params
 port=8000
-processes=8
+processes=16
 threads=16
 uid='www-data'
 gid='www-data'
 patterns='*.js;*.css;*.jpg;*.jpeg;*.gif;*.png;*.svg;*.ttf;*.eot;*.woff;*.woff2'
-buffersize=8192
+buffersize=16384
 
 # stating apps
 # pip install django-bootstrap3==6.2.1
@@ -62,6 +62,6 @@ else
 
     # app start
     uwsgi --socket :$port --wsgi-file $wsgi --chdir $app --master \
-        --processes $processes --threads $threads \
+        --processes $processes --http-timeout 300 \
         --uid $uid --gid $gid --logto $log --touch-reload $wsgi --buffer-size $buffersize
 fi