Skip to content

Sagemaker Async Inference - Instance allocation issue

0

I'm using ml.g4dn.xlarge instances with SageMaker Async Inference. Previously, instance allocation took around 6–7 minutes. However, today the allocation time has increased significantly.

My endpoints stay in the "Updating" status for about 30 minutes, then revert to "InService" without actually allocating any instances. Up until now, everything had been working consistently. ( I am increaseing the number of instances manually, not by alarms)

Has anyone experienced similar behavior? Any idea what might be causing this? Enter image description here

Thanks in advance! Zoltan

asked a year ago271 views

1 Answer
1
Accepted Answer

The issue you're experiencing with SageMaker Async Inference endpoint instance allocation could be due to several factors:

  1. Service Quota Limitations: You might have reached the service quota for ml.g4dn.xlarge instances in your account. When you hit a service quota limit, you'll typically receive an error message indicating that you've reached the account-level service limit for that instance type. You can check your current quota and request an increase if needed.

  2. Instance Availability: There might be limited availability of ml.g4dn.xlarge instances in your region at the moment. This can cause delays in instance allocation or prevent allocation entirely.

  3. Cold Start Issues: SageMaker Async Inference endpoints, especially when scaling from zero or adding new instances, can experience significant cold start times. This is particularly true when using large models or containers that require substantial download and initialization time.

  4. Resource Contention: Network latencies or resource contention might be interfering with the efficient allocation of instances.

To troubleshoot this issue:

  • Check your CloudWatch logs for any specific error messages
  • Verify that you haven't reached your service quota for the instance type
  • Consider temporarily using a different instance type to see if the issue persists
  • Monitor the endpoint metrics to understand what's happening during the "Updating" phase
  • If the issue continues, you might want to increase the InvocationTimeoutSeconds parameter, which specifies how long SageMaker waits for inference before returning an error (maximum 3600 seconds or 1 hour)

This sudden change in behavior when nothing has changed on your end suggests it might be related to resource availability or a temporary service issue in your region.
Sources
Troubleshoot invoke issues with Sagemaker AI asynchronous endpoints | AWS re:Post
Reduce cold-start times of Async Sagemaker endpoints (HuggingFace TGI image) | AWS re:Post
Troubleshoot auto scaling issues with SageMaker endpoints | AWS re:Post

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.