Separate local engine recovery from CometAPI request fallback

A local inference-process failure and a provider-request failure are different recovery signals. Treating them as one generic “retry” path makes it harder to restore capacity safely and can turn a bad request into repeated traffic.

NVIDIA’s description of shadow engine recovery is a useful boundary: a preinitialized standby can take over when the engine process fails, while GPU Memory Service keeps weights available. That is a local capacity-recovery mechanism—not a solution for a failed GPU, node, or multi-node environment. Monitor the engine, worker, node, and request layers separately, and record which layer actually failed.

For the application request path, use CometAPI as a deliberately bounded fallback rather than as a blanket second attempt. A practical decision table is:

  • Local process failure, healthy node: restart or promote the local standby, drain the failed worker, and keep the request failure reason attached to the recovery event.
  • Timeout, HTTP 408, HTTP 429, or temporary 5xx: after the local policy’s retry cap and backoff, try the next approved CometAPI route if the request is safe to repeat and the route supports its model and parameters.
  • Bounded quality-gate failure: route only if the application has defined the gate and the alternate route is approved for that task.
  • Malformed input, invalid credentials, or unsupported parameters: stop and surface the configuration or caller error. Do not spend another provider request to disguise it.
  • Hardware, node, or multi-node failure: do not claim that shadow recovery covers it; escalate to rescheduling or the platform’s broader failover procedure.

Keep the controls explicit: cap attempts across local and provider paths, preserve correlation IDs and the original error class, and make fallback observable as a separate event. Measure recovery time, retry counts, route, status class, and final outcome. This lets operators distinguish restored local capacity from a request that merely moved elsewhere.

The useful design is therefore two coordinated state machines: one restores serving capacity, while the other decides whether an individual request is eligible for CometAPI routing. They can share telemetry and a retry budget, but neither should erase the other’s failure reason.

Sources: NVIDIA Technical Blog, “Restore LLM Inference Capacity in Seconds with Shadow Engine Recovery in NVIDIA Dynamo” (Restore LLM Inference Capacity in Seconds with Shadow Engine Recovery in NVIDIA Dynamo | NVIDIA Technical Blog); CometAPI, “How to Route LLM Requests to the Right Model for Each Task” (How to Route LLM Requests to the Right Model for Each Task - CometAPI).

I would make “safe to repeat” an executable test around the application’s result-acceptance boundary, not just a property of the HTTP error. A useful fault-injection case is a local attempt that times out, triggers a CometAPI fallback, and then returns late after local capacity recovers.

For that case, I would give the logical request one application-level ID and each attempt a separate ID. The application should explicitly select which attempt may commit the result; a late response from a superseded attempt should not overwrite it or trigger downstream tools. These are application controls, not an assumption that an identifier deduplicates work across providers.

Streaming needs a separate assertion: once local output has been shown, do not silently append an alternate model’s response to the same answer. Either buffer until an attempt is selected or expose a restart as a distinct generation. For tool-enabled flows, track the tool action separately; if its effect is uncertain, reconcile that effect before authorizing another execution rather than treating a generation retry as permission to repeat it.

I would test both completion orders, plus a disconnect after the first visible token. The acceptance criterion is one committed answer and no duplicate downstream action—not merely a successful fallback response. That adds a request-correctness check alongside the capacity-recovery metrics.