Skip to content

Commit

Permalink
Refactor uWSGI options in start_ckan.sh.override to using lower options
Browse files Browse the repository at this point in the history
- 2 processes
- 32768 buffer-size
  • Loading branch information
mjanez committed Sep 23, 2024
1 parent ee9bfa1 commit 6a75fd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/setup/start_ckan.sh.override
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,27 @@ chown -R ckan:ckan $CKAN_LOGS_PATH/xloader
## Add thunder-lock to prevent multiple workers from running the same job and buffer-size to prevent large headers
## To increase performance, you can adjust the number of processes (-p) (More info: https://uwsgi-docs.readthedocs.io/en/latest/Options.html & https://www.bloomberg.com/company/stories/configuring-uwsgi-production-deployment/)
UWSGI_OPTS="--thunder-lock \
--buffer-size=65535 \
--ignore-sigpipe \
--socket /tmp/uwsgi.sock \
--wsgi-file /srv/app/wsgi.py \
--module wsgi:application \
--uid 92 --gid 92 \
--http [::]:5000 \
--master --enable-threads \
--master \
--enable-threads \
--lazy-apps \
--vacuum \
--harakiri $UWSGI_HARAKIRI \
--max-requests 500 \
--max-worker-lifetime 3600 \
--reload-on-rss 1024 \
--processes 3 \
--processes 2 \
--buffer-size 32768 \
--disable-logging \
--log-4xx \
--log-5xx \
--auto-procname \
--procname-prefix-spaced 'ckan '"
--procname-prefix 'ckan-'"

if [ $? -eq 0 ]
then
Expand Down

0 comments on commit 6a75fd0

Please sign in to comment.