containers - ECS服务不断注销目标组和启动/停止任务
问题描述
我有一个 ECS 服务,它重复启动和停止在 EC2 ( m5.large
) 启动类型容器上运行的任务。事件选项卡循环显示这些消息 -
service test-service deregistered 1 targets in target-group localhost-localhost-default
service test-service has begun draining connections on 1 tasks.
service test-service deregistered 1 targets in target-group localhost-localhost-default
service test-service has started 2 tasks: task 4e1569b3-a15c-4bac-85f7-396b530113a5 task d5651035-8e3d-48df-b457-d05e5b7be8db.
没有什么可以帮助理解可能发生的事情了。当我检查目标组本身时,实例不再注册到它。我已经分配memory: 1024
了cpu: 512
应该足够的任务。
我能做些什么来了解这里的问题是什么?
解决方案
在这条线上,
service test-service has started 2 tasks: task 4e1569b3-a15c-4bac-85f7-396b530113a5 task d5651035-8e3d-48df-b457-d05e5b7be8db.
任务 ID 是一个超链接,当您单击它时,它将带您进入可以找到有关该特定任务的所有详细信息的页面。
这里有一个条目“停止原因”,它将显示任务停止的原因。
如果由于健康检查失败而停止,它将显示在事件页面本身。
推荐阅读
- python - 连接到 PostgreSQL 的 Spark JDBC 错误
- if-statement - 谷歌表格:我想创建一个公式或函数,在特定条件下自动重新计算
- maven - 使用 mvn deploy 部署应用程序时,具有无服务器 VPC 连接器的 GCP App Engine 不起作用
- python - Django 错误导入 ProhibitNullCharactersValidator
- javascript - Web 应用程序中的多个光标 - 如何显示它们?
- r - R中数据帧的混洗块
- python - **减少** Spyder Python IDE 中界面字体的大小?
- c# - 等待后托管的 BackgroundService StopAsync 未执行
- asp.net - 批处理文件:等到多个 dotnet run 命令完成后再启动浏览器快捷方式
- javascript - 具有响应行为和比例缩放的两个图像