Managed compute environment, launches m4 instead of m5

0

Hi,
We migrated a few of our scheduled jobs to run aws batch and i have a few questions about the behaviour that i cant find online.

The auto scaling groups provisions m4 instances instead of m5s? which would be cheaper, is there a reason for this?
The allowed instances is on "optimal" which indicates this(i'll admit i didnt read this at the time of creating the environment).

The other question is, whenever it scales up an instance, it keeps it alive for a minimum of 10 minutes even if there are no jobs in a runnable status,
is this intended? I read that at the end of the ec2 billing cycle it will check if there are no jobs that are runnable and then scale down, which is weird to me because i read that ec2 is per second billing?

Kind Regards and thanks in advance

looloo
已提問 5 年前檢視次數 189 次
1 個回答
0
已接受的答案

Hi,

This is expected behavior in Batch. When scaling up an instance, Batch does assume that you will be submitting more jobs and waits before termination (to prevent spin-up/spin-down).

If you would like Batch to launch M5, please include that as an instance type (you can do it next to 'optimal').

AWS
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南