From c070bef0c1005366104176c1fc5af8b8f63cf01f Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 00:26:42 +0100 Subject: add stream heartbeat --- docs/operations.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/operations.md') diff --git a/docs/operations.md b/docs/operations.md index da73fce..fae3b6c 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -162,9 +162,10 @@ The names the proxy gives are the users of `--protocol-writers` and of who wrote ([`api.md`](api.md)). What streams (`/stream`, the dashboard's events) says `X-Accel-Buffering: no`, so nginx -passes it on as it comes. The dashboard's events have a keepalive every 15 s; `/stream` -sends nothing while nothing changes, so nginx ends a quiet one after its -`proxy_read_timeout` (60 s): raise that for it, or have clients reconnect. +passes it on as it comes, and says it's alive while nothing changes: the dashboard's +events every 15 s, `/stream` every 30 s (a blank line, `--stream-heartbeat`), within +nginx's `proxy_read_timeout` (60 s). With a proxy that gives up sooner, lower +`--stream-heartbeat` below its timeout. The API may also be served under a path of its own (`location /continuum/ { proxy_pass http://unix:/run/continuum/api.sock:/; }`): its redirects (`Location`), the dashboard's -- cgit v1.3.1