Amazon web services 由于cpu单元不足和某些时间超时,Ecs部署失败
我刚刚使用pip install ecs-deploy安装了ecs deploy 我第一次得到:Amazon web services 由于cpu单元不足和某些时间超时,Ecs部署失败,amazon-web-services,amazon-ec2,amazon-ecs,Amazon Web Services,Amazon Ec2,Amazon Ecs,我刚刚使用pip install ecs-deploy安装了ecs deploy 我第一次得到: Deploying based on task definition: task-demo:2 Creating new task definition revision Successfully created revision: 3 Updating service Successfully changed task definition to: task-demo:3 Deploying
Deploying based on task definition: task-demo:2
Creating new task definition revision
Successfully created revision: 3
Updating service
Successfully changed task definition to: task-demo:3
Deploying new task definition..........
2020-01-26 14:12:57.563000+00:00
ERROR: (service demo-service) was unable to place a task because no container instance met all of its requirements. The closest matching (container-instance ba93b620-89fa-4970-bf54-535a373d1aba) has insufficient CPU units available. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide.
Deployment failed
从第二次开始:
Deploying based on task definition: task-demo:5
Creating new task definition revision
Successfully created revision: 6
Updating service
Successfully changed task definition to: task-demo:6
Deploying new task definition...................................................................................................................................................................................................................................................................................................
Deployment failed due to timeout. Please see: https://github.com/fabfuel/ecs-deploy#timeout
如果用于任务放置的最近匹配容器实例没有足够的CPU单元来满足任务定义的要求,则可能会收到此错误消息 您需要检查容器实例上剩余的CPU单元,并进行调整以满足CPU需求 以下是解决此问题的资源: 关于超时问题,请注意,ecs命令的部署和缩放操作允许通过-timeout参数定义以秒为单位的超时。这指示ecs部署在给定的秒数内等待ecs完成部署 看
首先尝试解决CPU问题。超时问题很可能与此相关 @Rodrigo M你能帮忙吗