chore: add gunicorn workers and threads to prevent worker lockup
This commit is contained in:
+1
-1
@@ -16,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
|
||||||
EXPOSE 8111
|
EXPOSE 8111
|
||||||
CMD ["gunicorn", "--bind", "0.0.0.0:8111", "--chdir", "/app/lmsege", "lmsege.wsgi:application"]
|
CMD ["gunicorn", "--bind", "0.0.0.0:8111", "--workers", "3", "--threads", "2", "--chdir", "/app/lmsege", "lmsege.wsgi:application"]
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ services:
|
|||||||
python manage.py makemigrations users lms &&
|
python manage.py makemigrations users lms &&
|
||||||
python manage.py migrate &&
|
python manage.py migrate &&
|
||||||
python manage.py collectstatic --noinput &&
|
python manage.py collectstatic --noinput &&
|
||||||
gunicorn --bind 0.0.0.0:8111 lmsege.wsgi:application"
|
gunicorn --bind 0.0.0.0:8111 --workers 3 --threads 2 lmsege.wsgi:application"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- db-data:/app/lmsege/db_data
|
- db-data:/app/lmsege/db_data
|
||||||
|
|||||||
Reference in New Issue
Block a user