Keep client connections open for slow API requests
Kalamar's daemon drops a client connection after 30 s of inactivity,
although its API user agent waits up to 120 s for Kustvakt -- so
statistics requests over large virtual corpora fail for the browser
while Kustvakt keeps computing. Raise the daemon's inactivity timeout
in the deployment overlay accordingly.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: Ic23353039cb6c82560d9e86fdb16ab9ca1401e84
diff --git a/compose.instance.yaml b/compose.instance.yaml
index 997a667..34a1f5e 100644
--- a/compose.instance.yaml
+++ b/compose.instance.yaml
@@ -31,6 +31,10 @@
# hack, which rewrites /kalamar/kalamar.production.conf in place and would
# fight the read-only mount below.
KALAMAR_EXPORT: "false"
+ # Let slow API requests (statistics over large virtual corpora) finish:
+ # the daemon otherwise drops the client after 30 s although its API
+ # user agent waits up to 120 s for Kustvakt.
+ MOJO_INACTIVITY_TIMEOUT: "130"
volumes:
- ${KALAMAR_INSTANCE_DIR}/kalamar.ids-mannheim.conf:/kalamar/kalamar.production.conf:ro
- ${KALAMAR_INSTANCE_DIR}/templates/custom:/kalamar/templates/custom:ro