Does AWS Batch support EC2 Spot stop/start and hibernation

0

Does AWS Batch have support for EC2 spot stop/start and hibernation options to handle interruptions? The options are documented here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html

But I am unable to find reference of whether AWS Batch can support this. From my understanding, if a Spot instance is terminated, AWS Batch retries the job from the start.

AWS
질문됨 6년 전533회 조회
1개 답변
0
수락된 답변

No, AWS Batch does not support EC2 spot stop/start and hibernation options with a managed compute environment (CE). If a Spot instance is terminated, AWS Batch will retry the job (from the start) per your retry strategy defined in your job definition. It is possible for your job to resume progress if it has checkpointing built-in and you save your data somewhere that can be accessed again (e.g. EFS).

You can use hibernation with unmanaged CE. However, since it is not officially supported, your job might be “stuck” when Spot reclaims your instance and the instance goes into hibernation. This job will continue to be in “running” state and stay at the top of your job queue, preventing other jobs from running if you have hit your max vCPU limit in your CE.

AWS
AWS-Rey
답변함 6년 전
profile picture
전문가
검토됨 23일 전
  • hi, just checking in - is this answer still up-to-date 5 years later? we are wondering if hibernation-based spot instances can be used for our long-running batch jobs to reduce the cost :.)

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠