I think there's room for interpretation but that in cases like this, it is indeed a bug.
Many applications are programmed this way but I firmly believe that an application needs to honor the TTL of a DNS request for any subsequent connections, for exactly this reason. DNS records change. Sometimes frequently. IMO you shouldn't need yo kick your apps to get them to use the new hostname for subsequent connections.
Re:Nginx with dynamic upstreams
by justincormack on Sunday July 26, 2015 @05:27PM
(#9952249)
It should just schedule a DNS update before the previous one has expired, and if the addresses have changed shift over, so it should not cause any delays.
Ideally I would have like it to be an option though, instead of it basically having become a feature in Nginx Plus - if it wasn't for the way I described in the post.