Tune Quick Retry for congested forward paths
Quick Retry watches forward throughput while an edge server fetches a streaming media object. If the transfer drops below a target rate, it abandons that forward connection path and tries a different one, rather than letting a congested route stall the stream.
It's already in your environment: Quick Retry is added to the default rule set of every new Adaptive Media Delivery configuration and is enabled by default. This use case is about the cases where the default isn't right — a higher bitrate catalog, a low latency stream, or traffic that needs a different target per path.
Existing configurationsIf you have an older configuration without Quick Retry, add it to the appropriate rule. Property Manager displays a message recommending you do, for best performance.
When to revisit the default
- You deliver above 5 Mbps. Quick Retry's default target forward throughput is 5 Mbps — the accepted quality standard for HLS. It isn't enabled for streams above that, so 4K and 8K streams don't get it.
- You run low latency live. Low latency changes the traffic pattern enough that the defaults misfire. See Low latency considerations.
- You want different targets for different traffic. That needs the Quick Retry Override behavior and careful rule ordering.
Supported formats
- Apple HTTP Live Streaming (HLS)
- Dynamic Adaptive Streaming over HTTP (DASH)
Quick Retry also supports low latency live media, with specific requirements — see below.
How the 5 Mbps default behaves
Once enabled, the target forward throughput is 5 Mbps. When the transfer rate drops below that during a connection attempt, Quick Retry fires and a different forward path is used.
If you deliver exclusively high bitrate content, contact your account representative to have a higher throughput configured manually.
Raising or lowering the target: Quick Retry Override
To change the default throughput, your account representative adds the Quick Retry Override behavior to your environment and sets a Default Target Forward Throughput between 2 and 50 Mbps.
Rule ordering with Quick Retry Override
Quick Retry Override has a hard dependency: the Quick Retry behavior has to be present and enabled in a rule that applies to the request. Get the ordering wrong and you'll see a validation error or warning. These are the scenarios.
| Configuration | Intent | Validation | Cause and fix |
|---|---|---|---|
| Default rule set: Quick Retry On + Quick Retry Override | Quick Retry everywhere, with a custom throughput | None | Supported as-is. |
| Default rule set: no Quick Retry Match Rule 1: Quick Retry Override | Quick Retry everywhere, custom throughput only for matching requests | Error | Quick Retry Override requires the Quick Retry behavior, which isn't in the configuration. Fix: add Quick Retry to the default rule set with Enable On. Everything except Match Rule 1 then uses the default throughput. |
| Default rule set: Quick Retry Off Match Rule 1: Quick Retry Override | Same intent as above | Warning | Quick Retry Override needs Quick Retry enabled, and the default instance is disabled. Fix: enable Quick Retry in the default rule set. |
| Default rule set: Quick Retry On Match Rule 1: Quick Retry Off + Quick Retry Override | Default throughput for most traffic; custom throughput for Match Rule 1 | Warning | Quick Retry is disabled in the rule that also carries the override. Fix: set Quick Retry in Match Rule 1 to On. Matching requests then use the override's throughput; everything else uses 5 Mbps from the default rule set. |
| Default rule set: Quick Retry On Match Rule 1: Quick Retry Off + Quick Retry Override Match Rule 1a (child): Quick Retry On | Two match criteria sharing one custom throughput, everything else on the default | Warning | Both rules look to the override in Match Rule 1, whose Quick Retry instance is Off. Fix: set Quick Retry in Match Rule 1 to On. |
| Default rule set: Quick Retry Off Match Rule 1: Quick Retry Override Match Rule 2: Quick Retry On | Match Rule 2 always on 5 Mbps; everything else on the custom throughput if it matches Match Rule 1 | Warning | Match Rule 1 relies on the Quick Retry behavior in the default rule set, which is Off. Fix: enable Quick Retry in the default rule set. |
| Default rule set: Quick Retry On Match Rule 1: Quick Retry Off Match Rule 1a (child): Quick Retry Override | Two criteria using the override, everything else on 5 Mbps | Warning | Match Rule 1a only evaluates if its parent Match Rule 1 matches, and the parent's Quick Retry instance is disabled. Fix: set Quick Retry in Match Rule 1 to On. |
The pattern underneath all of these: the rule carrying Quick Retry Override must see an enabled Quick Retry, either in the same rule or inherited from a rule that applies to the request.
Low latency considerations
Low latency HLS
The HLS "parts" model can be addressed two ways, and the recommendation inverts between them:
| Mode | Recommendation |
|---|---|
| Discrete — each part has a unique URL | Enable Quick Retry |
| Byterange — segment files requested at a byte-range offset, data arriving as the packager produces it | Disable Quick Retry |
See Deliver live streams with low latency for the full LL-HLS setup.
Low latency DASH
Quick Retry measures throughput like this:
- Throughput is sampled in a window no smaller than the min-sample-period, default 20 milliseconds.
- Quick Retry triggers when the number of consecutive samples below the minimum target forward throughput reaches max-slow-samples.
A low latency response has a different traffic shape from a normal one: bursts separated by silence. Take a 5 Mbps stream on a 40 Mbps connection with 200 ms chunks. The chunk's average bitrate equals the stream bitrate, so Akamai receives a chunk in 25 ms and then nothing for 175 ms. With a 20 ms sampling window, the first window may measure 40 Mbps — and the second may measure far below 5 Mbps, because it lands in the silence.
The fix is to raise the tolerance: work with your account representative to set max-slow-samples to 2 or higher.
Custom target throughput with low latency
With low latency, the response header carries no content length, so segment duration can't be used to estimate the stream target forward throughput — which is how that value is normally derived. Two ways around it:
- Provide the bitrate in your content metadata.
- Change the forward throughput with Quick Retry Override.
Caveats and known issues
| Issue | Detail |
|---|---|
| Custom Tiered Distribution designs | A custom Tiered Distribution design implemented through advanced metadata produces an error when you add Quick Retry. Your account representative has to reconcile the two. |
| Cache Tag | The Cache Tag behavior doesn't work correctly with the multi-threading Quick Retry uses to switch between origins. Don't put both in a rule covering the same request. |
| Midgress traffic increases | Expect some additional midgress traffic, and therefore some additional cost. With a kick-in rate capped at 5% — and Quick Retry usually firing at the start of a transaction — the additional midgress traffic should be well under 5%. |
| Custom stream target forward throughput needs more setup | If your account representative has set a custom value, the Content Metadata behavior also has to be added, with a metadata data source of origin, Akamai/MM, or both. |
Built-in failover behavior
Worth knowing even though you don't configure it:
- Quick Retry fails over on its own. If a retry results in a 5xx on the primary path, it's redirected to a secondary path — the same thing that happens when throughput drops. Quick Retry continues from that secondary path, and will find another path if triggered again.
- Bad paths are blocked briefly. A path that drops below the target throughput, or returns 5xx on a retry, is marked bad and avoided for a short time.
- Both paths are tested continuously. Quick Retry maintains connections to primary and secondary paths, and uses the optimal one when it fires.
Related
Updated about 1 hour ago
