We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2db56fa commit 82ecc93Copy full SHA for 82ecc93
1 file changed
deploy/uwsgi.ini
@@ -3,7 +3,16 @@ http = 127.0.0.1:8000
3
virtualenv = /usr/lib/adx/venv
4
wsgi-file = /usr/lib/adx/submodules/ckan/wsgi.py
5
callable = application
6
-processes = 2
7
-threads = 4
+processes = 4
+threads = 8
8
enable-threads = true
9
master = true
10
+# Recycle workers after N requests to bound SQLAlchemy session-cache
11
+# and Python heap growth; without this, per-request latency climbs
12
+# within a single worker's lifetime under sustained load.
13
+max-requests = 500
14
+# Time-bound a request so a hung handler can't pin one of the 32 slots
15
+# indefinitely (e.g. a slow downstream call). harakiri-verbose logs
16
+# a Python traceback for whichever frame was running when killed.
17
+harakiri = 60
18
+harakiri-verbose = true
0 commit comments