Score:0

Will anycast failover to the next server if it encounters a 404 from an nginx server?

th flag

I know that anycast will failover for layer 3 issues but will anycast failover if a file is not present? I.E. like a 404?

It seems like it won't, like as long as nginx returns something anycast will consider that server healthy.

cn flag
Not only that. 404 is a valid answer and should by logic be returned by all servers. it indicates a URL with nothing behind, not any kind of infrastructure failure, which anycast is there to handle. There are a lot of scenarios where all kinds of HTTP level error codes are valid returns.
user970705 avatar
th flag
Awesome that's what I though. Thanks for the info.
Score:0
ru flag

I know that anycast will failover for layer 3 issues but will anycast failover if a file is not present? I.E. like a 404?

Neither nor. Anycast presents a specific IP address at multiple points in the network. When the currently routed destination is unavailable or broken, then that's it.

All the client could do is send another, identical request. Unless there's some way that the network itself fails over in the meantime (esp. anycast routing removing the faulty destination), that won't yield a different result.

If you had another scheme with a DNS hostname with multiple A records behind it, then the client could attempt a connection to one of the other IP addresses when the first attempt failed on the transport-protocol level. That is implementation specific and not a given though. In any case, if the contacted server connects and replies - even with a 404 - then the client won't attempt anything else.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.