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).