]> git.parisson.com Git - teleforma.git/commitdiff
update commands, reduce threads
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Feb 2019 00:52:12 +0000 (01:52 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 5 Feb 2019 00:52:12 +0000 (01:52 +0100)
app/bin/app.sh
app/bin/worker.sh
docker-compose.yml

index 84e0e2468b231ec17e76e15fce51884c96b52106..8fa9a6ab6b33c71c046746e670651d1683a9ae97 100755 (executable)
@@ -11,8 +11,8 @@ log='/var/log/uwsgi/app.log'
 
 # uwsgi params
 port=8000
-processes=8
-threads=8
+processes=2
+threads=2
 uid='www-data'
 gid='www-data'
 
index 3eb7b40f0013c4c3e5e942edaea855dda5410519..ff23a89ce0e4b953daec8878db0d3881c1897356 100755 (executable)
@@ -4,7 +4,7 @@
 app='/srv/app'
 manage=$app'/manage.py'
 wsgi=$app'/wsgi.py'
-concurrency=12
+concurrency=2
 
 # stating apps
 # pip uninstall -y south
index eede8a7dfa39210ac5e11ec0f7c84c84e822376b..6848b4e350ea353f89bce9d8532c7069862b79c5 100644 (file)
@@ -27,7 +27,7 @@ services:
 
   app:
     build: .
-    command: /bin/sh deploy/start_app.sh
+    command: /bin/bash bin/app.sh
     volumes:
       - ./app/:/srv/app
       - ./teleforma/:/srv/lib/teleforma/teleforma
@@ -44,6 +44,7 @@ services:
 
   worker:
     build: .
+    command: /bin/bash bin/worker.sh
     volumes_from:
       - app
       - var