Skip to content

Commit

Permalink
remove nice command and increase gunicorn timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram van Dartel committed Apr 23, 2024
1 parent b1913c9 commit c49ae31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:
env:
DOCKER_TARGET_REPO: xirixiz/dsmr-reader-docker
DOCKERFILE: Dockerfile
DOCKER_TARGET_RELEASE: 2024.04.03
DOCKER_TARGET_RELEASE: 2024.04.04

jobs:
################################################
Expand Down
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-backend/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
echo "Starting DSMR Reader - backend..."
cd /app || exit
nice -n 10 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_backend
else
sleep infinity
fi
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-datalogger/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone ]]; then
echo "Starting DSMR Reader - datalogger..."
cd /app || exit
nice -n 5 s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_datalogger
s6-setuidgid app /usr/local/bin/python3 -u /app/manage.py dsmr_datalogger
else
sleep infinity
fi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = api_client ]]; then
echo "Starting DSMR Reader - remote datalogger (api_client)..."
cd /app || exit
nice -n 5 s6-setuidgid app /usr/local/bin/python3 -u /app/dsmr_datalogger_api_client.py
s6-setuidgid app /usr/local/bin/python3 -u /app/dsmr_datalogger_api_client.py
else
sleep infinity
fi
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/s6-rc.d/svc-dsmr-webinterface/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if [[ "${DSMRREADER_OPERATION_MODE}" = standalone || "${DSMRREADER_OPERATION_MODE}" = api_server ]]; then
echo "Starting DSMR Reader - webinterface..."
cd /app || exit
nice -n 15 s6-setuidgid app /usr/local/bin/gunicorn dsmrreader.wsgi --timeout 60 --max-requests 500 --bind unix:/tmp/gunicorn--dsmr_webinterface.socket
s6-setuidgid app /usr/local/bin/gunicorn dsmrreader.wsgi --timeout 120 --max-requests 1000 --bind unix:/tmp/gunicorn--dsmr_webinterface.socket
else
sleep infinity
fi

0 comments on commit c49ae31

Please sign in to comment.