trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

Invalidate bulk list of URLs

Open jhg03a opened this issue 6 years ago • 2 comments

Today you can submit an invalidation through the old CDN portal or Traffic Portal by regex. I propose that we also allow you to supply a bulk list of URLs to be invalidated as well. When an origin conflates large quantities of assets into single directories with nonsense filenames, it's not practical to craft regexes for these kinds of scenarios without clobbering an origin. It is possible to find signatures of problematic urls via ats logs, and this would allow an operator to supply a simple list to iterate over.

jhg03a avatar Oct 18 '18 20:10 jhg03a

this would require enhancement of the /jobs api to support bulk creates of jobs or the UI could support "bulk" creates and then just call the api multiple times for each job.

mitchell852 avatar Jun 29 '21 15:06 mitchell852

I wouldn't assume anyone would spend human time doing manual input here. It's far more normal to see things like a newline delimited text file, excel spreadsheet, or json array. This should be a single post to the TO API so servers don't get caught constantly dealing with the regex_reval flag (or worse the race condition that already exists between the start of the ORT/t3c run, and when it updates the flag).

jhg03a avatar Jun 30 '21 18:06 jhg03a