Skip to content
Snippets Groups Projects
Commit e17f2fb5 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Set uWSGI number of workers/threads to a sane default andf fixed pidfile name....

Set uWSGI number of workers/threads to a sane default andf fixed pidfile name. Added the restart: unless-stopped rule to the Docker compose
parent 8cc3b9e6
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ services: ...@@ -5,6 +5,7 @@ services:
image: "rosetta/slurmclustermaster" image: "rosetta/slurmclustermaster"
container_name: slurmclustermaster container_name: slurmclustermaster
hostname: slurmclustermaster hostname: slurmclustermaster
restart: unless-stopped
environment: environment:
- SAFEMODE=False - SAFEMODE=False
privileged: true privileged: true
...@@ -15,6 +16,7 @@ services: ...@@ -15,6 +16,7 @@ services:
image: "rosetta/slurmclusterworker" image: "rosetta/slurmclusterworker"
container_name: slurmclusterworker container_name: slurmclusterworker
hostname: slurmclusterworker hostname: slurmclusterworker
restart: unless-stopped
environment: environment:
- SAFEMODE=False - SAFEMODE=False
privileged: true privileged: true
...@@ -27,6 +29,7 @@ services: ...@@ -27,6 +29,7 @@ services:
container_name: standaloneworker container_name: standaloneworker
hostname: standaloneworker hostname: standaloneworker
privileged: true privileged: true
restart: unless-stopped
volumes: volumes:
- ./data/shared:/shared - ./data/shared:/shared
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
...@@ -35,6 +38,7 @@ services: ...@@ -35,6 +38,7 @@ services:
container_name: dregistry container_name: dregistry
hostname: dregistry hostname: dregistry
image: "rosetta/dregistry" image: "rosetta/dregistry"
restart: unless-stopped
volumes: volumes:
- ./data/dregistry:/var/lib/registry - ./data/dregistry:/var/lib/registry
...@@ -42,6 +46,7 @@ services: ...@@ -42,6 +46,7 @@ services:
image: "rosetta/postgres" image: "rosetta/postgres"
container_name: postgres container_name: postgres
hostname: postgres hostname: postgres
restart: unless-stopped
environment: environment:
- SAFEMODE=False - SAFEMODE=False
volumes: volumes:
...@@ -51,6 +56,7 @@ services: ...@@ -51,6 +56,7 @@ services:
image: "rosetta/webapp" image: "rosetta/webapp"
container_name: webapp container_name: webapp
hostname: webapp hostname: webapp
restart: unless-stopped
environment: environment:
- SAFEMODE=False - SAFEMODE=False
- DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2" - DJANGO_DB_ENGINE="django.db.backends.postgresql_psycopg2"
......
...@@ -54,7 +54,9 @@ else ...@@ -54,7 +54,9 @@ else
uwsgi --chdir=/opt/code \ uwsgi --chdir=/opt/code \
--module=rosetta.wsgi \ --module=rosetta.wsgi \
--env DJANGO_SETTINGS_MODULE=rosetta.settings \ --env DJANGO_SETTINGS_MODULE=rosetta.settings \
--master --pidfile=/tmp/project-master.pid \ --master --pidfile=/tmp/rosetta-master.pid \
--workers 4 \
--threads 4 \
--socket=127.0.0.1:49152 \ --socket=127.0.0.1:49152 \
--static-map /static=/rosetta/static \ --static-map /static=/rosetta/static \
--http :8080 \ --http :8080 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment