Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4b8aef3

Browse files
committedNov 2, 2023·
Adapt uwsgi.conf to avoid net.core.somaxconn kernel issues
1 parent 7922f77 commit 4b8aef3

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
 

‎sddi-base/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ RUN set -ex && \
204204
# Copy init scripts and additional files
205205
COPY --chown=ckan:ckan initScripts/ ${APP_DIR}/docker-afterinit.d
206206
COPY --chown=ckan:ckan who.ini ${APP_DIR}/who.ini
207+
COPY --chown=ckan:ckan uwsgi.conf ${APP_DIR}/uwsgi.conf
207208

208209
RUN set -ex && \
209210
ckan config-tool "${CKAN_INI}" "ckan.plugins = ${CKAN__PLUGINS}" && \

‎sddi-base/uwsgi.conf

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[uwsgi]
2+
socket = /tmp/uwsgi.sock
3+
uid = ckan
4+
gid = ckan
5+
http = :5000
6+
7+
master = true
8+
enable-threads = true
9+
lazy-apps = true
10+
gevent-early-monkey-patch = true
11+
vacuum = true
12+
single-interpreter= true
13+
die-on-term = true
14+
need-app = true
15+
auto-procname = true
16+
17+
wsgi-file = /srv/app/wsgi.py
18+
module = wsgi:application
19+
gevent = 2000
20+
callable = application
21+
paste = config:/srv/app/production.ini
22+
paste-logger = /srv/app/production.ini
23+
24+
post-buffering = 1
25+
buffer-size= 12288
26+
max-requests = 3000
27+
max-worker-lifetime = 3600
28+
reload-on-rss = 4096
29+
worker-reload-mercy = 60
30+
socket-timeout = 300
31+
queue = 1000
32+
queue-blocksize = 204800
33+
static-gzip-all = true
34+
listen = 128
35+
http-timeout = 1000
36+
http-headers-timeout = 1000
37+
http-connect-timeout = 1000

0 commit comments

Comments
 (0)
Please sign in to comment.