Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread Nick Dunkin
Got it, thanks! I was wondering why the retry number was one bigger than I thought I needed in my tests 😊 Thanks for all your help, N From: John Rushford Date: Thursday, September 15, 2022 at 4:45 PM To: dev@trafficserver.apache.org Subject: Re: Different parent rules for 404 vs 5xx or unava

Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread John Rushford
You can bump that up to greater than 5 but just keep in mind that once all parents are tried without success, an additional retry beyond the total number of parents would result in a 502 response back to the client instead of a 404 Sent from my iPhone > On Sep 15, 2022, at 1:58 PM, Robert O But

Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread Robert O Butts
Nick, if you're open to writing code, it wouldn't be overly difficult to modify the parent_select plugin to do what you want. https://github.com/apache/trafficserver/tree/master/plugins/experimental/parent_select https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/parent_select.en.

Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread Nick Dunkin
Hi John, Thanks. But if I have 5 primary parents in “cluster A”, and 3 secondary parents in “cluster B”, then there is no configuration that will get me to “cluster B’ if the content is not available (404) on “cluster A”. Which is my problem unfortunately. I’d like to push that value of

Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread John Rushford
Yes, max_simple retries should be no more than the total number of parents -1. Let’s say that you have 5 parents and all 5 send back a 404, that’s what it should be if none of the parents has the object. However, if you set max_simple_retries greater than the total number of parents, the final

Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread Nick Dunkin
Hi John, Thanks for the clarification. My short term mitigation is going to require me to increase the value of max_simple_retries. This property is currently fixed in the code to a maximum values of 5. Are you aware of any reason that I can’t safely increase that maximum (in the code) to so

Re: Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread John Rushford
Nick, Currently this is not supported a change would have to be made to support it. John Rushford jrushf...@apache.org Sent from my iPhone > On Sep 15, 2022, at 10:14 AM, Nick Dunkin > wrote: > > ï»ż > Hi, > > I have a parent.config rule that uses a primary and secondary set of parents. >

Different parent rules for 404 vs 5xx or unavailable

2022-09-15 Thread Nick Dunkin
Hi, I have a parent.config rule that uses a primary and secondary set of parents. Assuming a 404 from a parent in the primary list I would like to immediately try a parent in the secondary parent list, but for a 5xx, or connection error, I would like to first exhaust the primary list first, bef