Skip to content

Commit

Permalink
Adapt uwsgi.conf to avoid net.core.somaxconn kernel issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BWibo committed Oct 19, 2023
1 parent 0a29652 commit 95f5645
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions sddi-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ RUN set -ex && \
# Copy init scripts and additional files
COPY --chown=ckan:ckan initScripts/ ${APP_DIR}/docker-afterinit.d
COPY --chown=ckan:ckan who.ini ${APP_DIR}/who.ini
COPY --chown=ckan:ckan uwsgi.conf ${APP_DIR}/uwsgi.conf

RUN set -ex && \
ckan config-tool "${CKAN_INI}" "ckan.plugins = ${CKAN__PLUGINS}" && \
Expand Down
37 changes: 37 additions & 0 deletions sddi-base/uwsgi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[uwsgi]
socket = /tmp/uwsgi.sock
uid = ckan
gid = ckan
http = :5000

master = true
enable-threads = true
lazy-apps = true
gevent-early-monkey-patch = true
vacuum = true
single-interpreter= true
die-on-term = true
need-app = true
auto-procname = true

wsgi-file = /srv/app/wsgi.py
module = wsgi:application
gevent = 2000
callable = application
paste = config:/srv/app/production.ini
paste-logger = /srv/app/production.ini

post-buffering = 1
buffer-size= 12288
max-requests = 3000
max-worker-lifetime = 3600
reload-on-rss = 4096
worker-reload-mercy = 60
socket-timeout = 300
queue = 1000
queue-blocksize = 204800
static-gzip-all = true
listen = 128
http-timeout = 1000
http-headers-timeout = 1000
http-connect-timeout = 1000

0 comments on commit 95f5645

Please sign in to comment.