ECS EC2 AutoScalingGroup 管理的自动扩展不起作用

0

【以下的问题经过翻译处理】 我正在尝试将ECS与EC2 AutoscalingGroup(ASG)和ManagedScaling一起使用。

  • AutoScalingGroupProvider已启用ManagedScaling,并将TargetCapacity设置为100。
  • ASG的MinSize = 0,MaxSize = 5。

当我在集群中创建服务(服务DesiredCount = 1)时,服务无法放置任务,出现以下错误:

<<serviceName>>无法放置任务,因为没有任何容器实例满足其要求。原因:您的集群中没有找到容器实例。

我期望ECS自动扩展ASG(添加实例)并将任务放置在新实例上。如果我手动更改ASG的DesiredCapacity为1,则可以部署Service(task)。管理的扩展应该不会处理吗?是否有人可以指导我我做错了什么?

1 Answer
0

【以下的回答经过翻译处理】 在咨询了AWS支持后,问题是我指定了启动EC2类型,但实际上我应该为服务或整个集群指定容量提供程序。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions