Keep inference running through regional capacity shortfalls with cross-Region inference routing in Amazon SageMaker AI

In one sentence

Amazon SageMaker AI introduces cross-Region inference routing to automatically shift inference traffic to other Regions when local endpoints face capacity shortfalls or failures.

Key points

  • Applications invoke a single inference router path to access registered endpoints and inference components across multiple AWS Regions and accounts.
  • The router prefers local destinations and shifts traffic away only when local health scores drop due to 5xx errors, throttles, or timeouts.
  • Once local destinations recover, traffic gradually returns over several minutes without interrupting requests in progress.
  • The router retries failed real-time requests once on another destination if the model did not run, such as throttles or 503 errors, but never retries timeouts or 500 errors.

In depth

An AI-written overview of the original article, not the article itself.

AWS has introduced cross-Region inference routing in Amazon SageMaker AI. Using a new resource called an inference router, applications gain a single invocation path across endpoints and inference components in multiple AWS Regions and accounts. When one Region faces GPU capacity shortages, the router automatically shifts traffic to healthy destinations elsewhere, eliminating the need for teams to build custom failover logic.

Core Mechanism and Failover

Users create a routing target for each logical model on a router and register real-time endpoints, inference components, or asynchronous endpoints as destinations. The router prefers healthy local destinations in its own Region and moves traffic away only when local serving becomes unreliable.

SageMaker AI calculates a health score from recent requests and publishes states (healthy, overloaded, or degraded) to Amazon CloudWatch. Server errors, throttles, and timeouts lower the score, whereas invalid inputs and model latency do not. After about a minute of sustained errors, traffic shifts proportionally to healthy remote destinations and returns gradually over several minutes once recovered.

Retry Policy and Limitations

For real-time requests that fail without running the model, such as throttles, 503 errors, or cross-Region traffic cap rejections, the router retries once on another destination. Timeouts, 500 errors, and model errors are never retried. Asynchronous requests try each eligible destination once until accepted.

Currently, the inference router does not support response streaming, requiring non-streaming requests that complete within about a minute. Additionally, the router does not create capacity, scale endpoints, or deploy models.

Cross-Account Routing and Traffic Caps

The feature supports routing across separate AWS accounts. Endpoint owners must attach a resource-based policy granting access to a named router, while callers need IAM permissions for both the router and the underlying destinations.

To protect receiving endpoints from overflow surges, owners can set a cross-Region traffic cap in the endpoint configuration, defining max invocations per second per instance and the allowed cross-Region percentage. This cap scales with autoscaling and only limits requests from other Regions, leaving local callers unaffected.

Read originalOpens aws.amazon.com

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Recent stories from this source