AI Cloud Architect

Spreading the load: How Salesforce met Multi-AZ HA with SageMaker Inference Components

AWSCustomer story by Rielah De Jesus, Anuja Pulijala, Qiyun Zhao, Ruchita Jadav, Sai Guruju, Srikanta Prasad S V and Xiaoguang ChenAWS Artificial Intelligence Blog

Learn how Salesforce used Amazon SageMaker AI Inference Component placement (the SchedulingConfig parameter) to distribute model copies across multiple Availability Zones, meeting their Multi-AZ high availability compliance requirements without sacrificing the cost efficiency of multi-model co-hosting.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

SageMaker Inference Components gain SchedulingConfig placement so model copies spread across Availability Zones, which Salesforce used to meet a 2-AZ requirement for its Agentforce models.

Who it is for

Teams running multiple models on shared SageMaker endpoints that need copies spread across Availability Zones for high availability.

Key points

  • SchedulingConfig is set in CreateInferenceComponent with PlacementStrategy (SPREAD or BINPACK) and AvailabilityZoneBalance (EnforcementMode, MaxImbalance).
  • EnforcementMode is PERMISSIVE and currently the only mode; balance is best-effort, and copies are placed on available instances if balance fails.
  • AWS recommends On-Demand Capacity Reservations in AZ-constrained Regions to help achieve balanced placement.
  • AWS says Salesforce reached an 8x infrastructure cost reduction by co-hosting models on shared GPUs.