You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Nick Dunkin <Ni...@vecima.com> on 2020/07/02 14:54:27 UTC

Failing over while following a redirect - advice needed

Hi everyone,

[Apologies for the repost – I got no bites on the “users@” group.]

I need some advice on an architecture we’re trying to support using parent routing.

The issue we have is that all our “Tier 1” Origins work by redirection of specific content requests to some external “Tier 2” Content Server.  The URL path on the “Tier 2” Content Server will be different to the URL path presented to the Origin Server in the original request.  We have Traffic Server configured to follow redirects.

When Traffic Server gets an error response while following the redirect, we would like to be able to configure a retry in the parent.config that will force a retry of the original request (not the redirect) to an alternative “Tier 1” Origin.  The issue being that the original path on the “Tier 1” Origins will be different to the path redirected to on the Tier 2 Content Server, and we need to retry with the original path to an alternative “Tier 1” Origin.  The URL paths are consistent between “Tier 1” Origins.

A picture is worth a thousand, so here is a sequence diagram of what we’re trying achieve (image also attached).

https://www.websequencediagrams.com/cgi-bin/cdraw?lz=dGl0bGUgRmFpbGluZyBPdmVyIG9uIEludGVybmFsIFJlZGlyZWN0cz8KCkNsaWVudC0-QVRTOiBDb250ZW50IFJlcXVlc3QKQVRTLT5UaWVyIDEgT3JpZ2luIEEAFREgKHBhdGggQSkKABsPAE4HAGYIAEgGAFsIU2VydmVyADoVRm9sbG93IHIAgR8HLCAAWwVCKQoALBAAgS8HSFRUUCA1MDAATAhFcnJvcgCBKBRCAFkUYWlsb3ZlcgBfBwCBNRFCAIEiJABEFQCBMRVDAIE1EQBZCACCdQcAgh8HAIMRBQALCg&s=rose

[A screenshot of a map  Description automatically generated]

Is this possible “out of the box” with parent configuration?

Any advice is greatly received.

Thanks,

Nick