amazon-web-services - ECS 中的最小任务数和期望的任务数有什么区别?

标签 amazon-web-services amazon-ecs aws-fargate

如果这个问题听起来短视,我很抱歉,但我无法理解这两个参数之间的差异。
AWS 文档也没有给我答案:

For Minimum number of tasks, enter the lower limit of the number of tasks for Service Auto Scaling to use. Your service's desired count is not automatically adjusted below this amount.


For Desired number of tasks, this field is pre-populated with the value that you entered earlier. You can change your service's desired count at this time, but this value must be between the minimum and maximum number of tasks specified on this page.


有人可以帮助我理解这一点。我正在使用 Fargate发射类型 BTW。

最佳答案

这两个值看起来很相似,但是却有很大的不同。
最小任务数是应该存在的少量任务。如果这是 3 并且它低于 3 任务,则存在大问题(例如 AZ 故障或主机故障)。这个值应该能够应付您期望的最小负载量,此外尽量确保它具有高可用性以支持单个节点故障。
Desired number of tasks 是 ECS 想要运行的任务数量,这将在 min 和 max 之间的范围内,但永远不会超过边界。这不等于正在运行的任务数量,它只是应该运行的任务数量(您可能会在自动缩放操作开始之前看到这个数字增加)。

关于amazon-web-services - ECS 中的最小任务数和期望的任务数有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63380221/

相关文章:

amazon-web-services - AWS 胶水 : ETL job creates many empty output files

.net - 我可以将 .NET 网站复制/粘贴到 Windows Azure 吗?

amazon-web-services - Amazon Athena 表创建失败, "no viable alternative at input ' create external'"

amazon-ecs - 如何将 ebs 卷(或部分)挂载到 Fargate 容器

amazon-web-services - 使用 ECS Fargate 执行 Step Function "Tasks"

amazon-web-services - 任务定义 - 遇到不受支持的属性名称 - 环境

amazon-web-services - Amazon CloudFront 中的无效文件请求如何计费?

docker - 如何在yaml中覆盖aws ecs中docker镜像的命令

amazon-web-services - 使用 ExecutionRole 从 ECS 任务访问参数存储值时出现问题

amazon-web-services - 如何将 Fargate 服务添加到入站安全规则?