Remove --plugins options from uWSGI configuration

- The --plugins options were removed from the uWSGI configuration because the plugins are already included when uWSGI is installed via pip. Specifying the plugins explicitly is unnecessary and can lead to errors if the plugins are not found in the expected locations. By removing the --plugins options, we rely on uWSGI's dynamic plugin loading mechanism, which ensures that the required plugins (e.g., python, http) are loaded correctly without the need for manual specification.

- Add performance options.
This commit is contained in:
mjanez 2024-09-23 18:54:38 +00:00 committed by GitHub
parent c4c58f6ef1
commit 3fdab45448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -48,8 +48,11 @@ chown -R ckan:ckan $CKAN_LOGS_PATH/harvester
mkdir -p $CKAN_LOGS_PATH/xloader
chown -R ckan:ckan $CKAN_LOGS_PATH/xloader
# Set the common uwsgi options
UWSGI_OPTS="--plugins http,python \
# Set the common uwsgi options.
## Add thunder-lock to prevent multiple workers from running the same job and buffer-size to prevent large headers
UWSGI_OPTS="--thunder-lock \
--buffer-size=65535 \
--ignore-sigpipe \
--socket /tmp/uwsgi.sock \
--wsgi-file /srv/app/wsgi.py \
--module wsgi:application \