简体   繁体   English

同一 ecs 服务上的多个任务

[英]Multiple tasks on the same ecs service

I'm newbie on AWS, and I'm working right now with the aws ECS Service .我是 AWS 的新手,我现在正在使用 aws ECS Service 。 I noticed an input that asks how much tasks I want to perform in a particular service.我注意到一个输入询问我想在特定服务中执行多少任务。

I wonder what is the use of multiple similar tasks in one service .我想知道在一个服务中使用多个类似的任务有什么用。 To the best of my knowledge if I want to run different tasks on the same ec2 instance I'm supposed to create a service for each of them.据我所知,如果我想在同一个 ec2 实例上运行不同的任务,我应该为每个任务创建一个服务。

So my question is when and why I should use multiple identical tasks in a particular service ?所以我的问题是我何时以及为什么应该在特定服务中使用多个相同的任务?

Thanks :-)谢谢 :-)

why I should use multiple identical tasks in a particular service为什么我应该在特定服务中使用多个相同的任务

For scalability and fault-tolerance .对于可扩展性和容错性 More tasks in a service can handle more load.服务中的更多任务可以处理更多负载。 Also if a single tasks crashes, you have several others to carry out your workload, which prevents downtime.此外,如果单个任务崩溃,您还有其他几个任务来执行您的工作负载,从而防止停机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM