AWS ECS中的批处理系统与AWS Batch有何不同? [英] How is a batch processing system in AWS ECS different from AWS Batch?

查看:144
本文介绍了AWS ECS中的批处理系统与AWS Batch有何不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个批处理系统,每天固定时间运行5个小时.借助AWS Batch,我可以安排创建所需EC2实例以完成该工作并终止该实例的作业.但是使用ECS,我可以根据我的要求自动启动和终止EC2实例吗?

I have a batch processing system which runs for 5 hours daily on a fixed time. With AWS Batch, I could schedule the job which creates the required EC2 instances to do the job and terminate back the instances.But with ECS, can i launch and terminate the EC2 instance automatically as per my requirement?

推荐答案

只要您将Compute Environment创建为

This automatic downscaling can be done using AWS Batch as long as you create the Compute Environment as a Managed Compute Environment instead of unmanaged.

但是,在ECS中使用任务意味着必须清除必须清除EC2资源并手动删除.它可以内置到应用程序的一部分中,也可以通过CloudFormation进行管理,但是最终缩减这些资源将是您的责任.

However, using Tasks in ECS means the EC2 resources must be cleaned up and deleted manually. It can be built in to part of your application or managed with CloudFormation, but scaling down those resources is going to be your responsibility in the end.

这篇关于AWS ECS中的批处理系统与AWS Batch有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆