{
  "schemaVersion": 1,
  "contribution": "Deterministic call-count illustration, not measured system performance",
  "generatedAt": "2026-10-20T18:10:27.796Z",
  "sourceSha256": "55dabd88d7d40ac40b219bfbfe6e54252397a314a70d57e0d6d5db0aa32c4254",
  "model": "https://hesela.dev/scripts/retry-budget-model.mjs",
  "article": "https://hesela.com/analyses/storage-timeouts-uncertain-completion/#retry-budgets",
  "unit": "Leaf request attempts per one original logical operation",
  "assumptions": [
    "A serial nested chain; no fan-out, concurrent hedging or parallel requests.",
    "Every leaf call fails, all local allowances are otherwise exhausted.",
    "Each local cap includes its initial attempt and resets on each new invocation.",
    "The optional shared leaf budget includes the first leaf attempt and never resets within the operation.",
    "No timing, queue, capacity, byte, durability or recovery model."
  ],
  "sources": [
    {
      "url": "https://sre.google/sre-book/addressing-cascading-failures/",
      "section": "Retry guidance",
      "accessed": "2026-10-20"
    },
    {
      "url": "https://sre.google/sre-book/handling-overload/",
      "section": "Deciding to Retry",
      "accessed": "2026-10-20"
    }
  ],
  "cases": [
    {
      "id": "independent",
      "label": "Three attempts at every layer",
      "caps": [
        3,
        3,
        3,
        3,
        3
      ],
      "leafBudgetPerOperation": null,
      "layerAttempts": [
        3,
        9,
        27,
        81,
        243
      ],
      "leafAttempts": 243,
      "uncappedLeafAttempts": 243,
      "intermediateAttempts": 120
    },
    {
      "id": "three-retries",
      "label": "Three retries at every layer",
      "caps": [
        4,
        4,
        4,
        4,
        4
      ],
      "leafBudgetPerOperation": null,
      "layerAttempts": [
        4,
        16,
        64,
        256,
        1024
      ],
      "leafAttempts": 1024,
      "uncappedLeafAttempts": 1024,
      "intermediateAttempts": 340
    },
    {
      "id": "one-owner",
      "label": "Only the deepest layer retries",
      "caps": [
        1,
        1,
        1,
        1,
        3
      ],
      "leafBudgetPerOperation": null,
      "layerAttempts": [
        1,
        1,
        1,
        1,
        3
      ],
      "leafAttempts": 3,
      "uncappedLeafAttempts": 3,
      "intermediateAttempts": 4
    },
    {
      "id": "shared-cap",
      "label": "One shared cap of seven leaf attempts",
      "caps": [
        3,
        3,
        3,
        3,
        3
      ],
      "leafBudgetPerOperation": 7,
      "layerAttempts": [
        1,
        1,
        1,
        3,
        7
      ],
      "leafAttempts": 7,
      "uncappedLeafAttempts": 243,
      "intermediateAttempts": 6
    }
  ]
}
