aws / aws/containers-roadmap

[ECS] [AWS CloudMap] [request]: ECS UpdateInstanceHealthStatus very slow to CloudMap

Open
#830 0 comments 4 reactions 0 assignees View on GitHub
ECS Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
ECS Fargate should update the the new CloudMap instance to healthy before deregister the old CloudMap instance

**Which service(s) is this request for?**
ECS Fargate, AWS CloudMap

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**

Steps to reproduce:

1. Running 1 task of ECS Fargate with Service Discovery and container health check propagation configured
2. Update Fargate Service
3. When the new task become HEALTHY, the old instance gets deregistered from AWS CloudMap, yet it is faster than ECS update the health status of the new instance to CloudMap
4. This results in a short period of time where there is no healthy instance for this service, causing downtime during CD

Currently this is not an issue if I have more than 1 instance, the health status can alternate so that I always have healthy instances.
But this is an issue if I only have 1 desired instance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.