Skip to content

Conversation

@singholt
Copy link
Contributor

@singholt singholt commented Oct 8, 2025

Summary

This PR fixes an issue with Service Connect stats.

The ECS agent collects Service Connect (SC) stats from the SC relay daemon container. Currently, the ECS agent stops collecting stats as soon as one container of an ECS task stops. This becomes an issue when the ECS task has a non-essential container - SC stats stop being reported to ECS control-plane, even though other essential containers are running.

Implementation details

Updated the ECS agent stats cleanup logic - only stop collecting SC stats when all containers of the ECS task stop.

Testing

New tests cover the changes: Yes, added a new unit test, and also tested this end-to-end with the help of ECS networking team.

Description for the changelog

Bugfix: Stop collecting Service Connect stats only when there are zero running containers in the task.

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions? No

Does this PR include the addition of new environment variables in the README? No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@singholt singholt changed the base branch from master to dev October 8, 2025 15:28
@singholt singholt changed the title wip: sc stats fix Service Connect stats bugfix Oct 9, 2025
@singholt singholt marked this pull request as ready for review October 9, 2025 21:00
@singholt singholt requested a review from a team as a code owner October 9, 2025 21:00
@singholt singholt enabled auto-merge (rebase) October 9, 2025 21:51
@singholt singholt merged commit 0baae07 into aws:dev Oct 10, 2025
42 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants