amazon-web-services - AWS ECS private namespace list-instances remain unhealthy
问题描述
i have a private namespace with a service im using for ECS service discovery. The service is created like so
aws servicediscovery create-service --name elixir --dns-config 'NamespaceId="ns-XXXXX",DnsRecords=[{Type="A",TTL="300"}]' --health-check-custom-config FailureThreshold=1 --region XXXX --profile XXXX
My custom healthcheck in my task definition is:
sh -c curl localhost:4000/status
docker ps lists each instance as healthy - ec2 status checks are 2/2/green - yet i cant seem to get the discovery service list-instances to flip from IS_INITIALIZING: true, and AWS_INIT_HEALTH_STATUS: UNHEALTHY.
The service discovery DNS properly routes to each instance as by design.
解决方案
向 AWS 打开了一张票 - 事实证明,这是他们方面的一个错误,特定于 US-WEST-2 (AFAICT) 区域,其中服务发现在 Ec2 初始化和状态检查上没有正确更新。我会在它解决后更新它。
推荐阅读
- r - 在 ShinyWidgets 中使用 selectizeGroup 时可以添加选项组吗?
- android - 无法从 androidx 导入 androidx.annotation.NonNull 和所有
- google-data-studio - Google Data Studio - 混合数据添加非连接字段
- ibm-cloud - 如何将外部卷连接到 IBM Cloud Code Engine
- domain-driven-design - 在用例中使用基础设施
- visual-studio - MFC:Visual Studio 2019 提示无法实例化 ActiveX 控件?
- java - 类中的Java @Autowire 依赖项并在类成员初始化中使用它们
- ansible - Ansible-playbook 搜索错误目录中的角色!如何纠正它?
- json - 将配置绑定到复杂对象
- questdb - 使用 PgWire 时如何解决 QuestDB Java 客户端 EOFException?