In this article
Per-index backoff preserves progress elsewhere; maxFailedIndexes limits how much failed coverage the run tolerates before terminating remaining Pods.
A dataset evaluation can contain a damaged partition while the remaining partitions are still useful. A shared retry budget lets that partition consume attempts intended for the rest. Indexed Job backoff can isolate retries, but isolation does not automatically redefine successful dataset coverage.
Separate the accounting units
An attempt belongs to a Pod; an index identifies a logical partition. Several failed attempts can therefore produce a single failed index. Kubernetes records completedIndexes and failedIndexes separately. Preserve the input manifest associated with the Job so that these sets describe actual data partitions. The earlier Indexed Job identity guide explains that mapping; it cannot decide which omissions the application accepts.
Assign retries to each index
The Job documentation requires Indexed completion and restartPolicy Never for backoffLimitPerIndex. Choose its value from the worker’s recovery contract rather than the number of available nodes. A malformed partition is unlikely to improve through repetition; a temporary dependency failure may. Also review any explicit overall backoffLimit: per-index accounting does not justify leaving an unrelated global termination policy unexplained in the submitted specification.
Decide when to stop the remaining work
maxFailedIndexes applies to failed indexes, rather than failed Pods. The controller triggers termination when the failed-index count exceeds the configured ceiling. Remaining indexes otherwise continue despite another index failing. Under the documented ordinary per-index failure path, a finished run containing failed indexes is failed overall, even when most partitions succeeded. Partial usefulness and controller success are separate acceptance decisions; an explicit success policy needs its own review.
Classify permanent partition failures
The failure-policy examples show FailIndex alongside per-index backoff. Use it only when the selected container’s exit signal reliably means that its partition cannot succeed through retry. Ordered rules and unmatched failures still matter. A broad permanent-failure rule can silently reduce coverage. Review application failure classification before changing this budget; policy scope is not a substitute for trustworthy worker signals.
Exercise the threshold boundary
Use disposable partitions with declared successful, transient and permanent outcomes. Compare a run that reaches the failed-index ceiling with one that exceeds it, keeping the same input manifest. Record Pod UIDs, completion indexes, attempts, selected policy actions and the sequence of Job conditions. Confirm whether unfinished partitions were terminated. This is a proposed acceptance exercise, not a claim that a particular cluster has been tested.
Preserve useful output without relabelling success
Retain verified successful artifacts and a manifest naming missing partitions, failed indexes and reasons. A downstream consumer must explicitly accept that incomplete set; a large succeeded count alone is insufficient. Check final controller conditions after Pods finish, then keep the coverage verdict alongside them. These budgets control retry and termination decisions. They neither repair bad input nor make repeated external writes atomic, and they do not establish the correctness of a completed partition’s content.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.