Skip to content
ML Academy

Engineering, production, governance, cost, communication · insight-1277

Add jitter, a cap and a retry budget when many batch workers call a model service

Evidence type
documented fact
Difficulty
medium
Roles
ML engineer
Industries
cross-industry

Summary: situation, action, reason, boundary

  1. Situation

    A nightly scoring job runs 200 workers against the model endpoint, which has a 30-second brownout, and every worker retries on the same fixed schedule.

  2. Action

    Use randomized exponential backoff with a maximum delay, a per-worker and per-job retry budget, a deadline for the whole request, no retries on permanent errors, and a limit on concurrent workers.

  3. Reason

    Retries multiply load on a struggling dependency, and uncoordinated fixed schedules synchronize clients; randomization and budgets bound the amplification.

  4. Boundary

    Batch scoring, feature backfills and any fan-out client of a shared model service.

Symptom or risk

Retries arrive in synchronized waves, the brownout becomes an outage and the job takes hours longer than the failure itself.

Exceptions

A single sequential client with low volume can use simple capped retries.

Trade-offs

Budgets cause some work to fail fast; pair with a resumable job that skips completed partitions.

Pitfalls

Retrying at every layer, which multiplies attempts.

Lessons and concepts

Claims and their sources