Skip to content

Commit 2d857e6

Browse files
committed
Adapt uwsgi.conf to avoid net.core.somaxconn kernel issues
1 parent b86f9e9 commit 2d857e6

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

sddi-base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
123123

124124
# Get artifacts from build stages
125125
COPY --from=extbuild /wheels ${APP_DIR}/ext_wheels
126+
COPY --chown=ckan:ckan uwsgi.conf ${APP_DIR}/uwsgi.conf
126127

127128
RUN chown -R ckan:ckan-sys ${APP_DIR}
128129

sddi-base/uwsgi.conf

Lines changed: 37 additions & 0 deletions
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)