Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Feature/task_scale_in_protection_pass_through to dev #3427

Merged
merged 15 commits into from
Oct 12, 2022

Conversation

Realmonia
Copy link
Contributor

@Realmonia Realmonia commented Oct 11, 2022

Summary

Merge feature/task_scale_in_protection_pass_through branch to dev branch.

Implementation details

  • Create a new http endpoint with existing task credential endpoint port (51679).
  • Expose above endpoint to task container through environment variable.
  • Create a corresponding handler for above endpoint. In this handler, wrapping the request from application container into in a format that ECS Web API takes. Create an ECS Client with configuration in Agent and call ECS Web API
  • Forward response from ECS Web API to container after some processing (Adjust output format, extract first item from response as the Web API is a batch API while Agent API only for one item).

Testing

New tests cover the changes: Yes

We also have new end2end test in functional test platform, as well as load test done for this feature.

Description for the changelog

Task Scale In Protection Pass Through Mode Agent side changes.

Licensing

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

amogh09 and others added 15 commits October 4, 2022 16:32
#3344)

* Inject Agent API V1 endpoint path into containers as an environment variable

* Swap expected and actual arguments to assert.Equal calls

* Fix windows test

Co-authored-by: Amogh Rathore <amoghr@amazon.com>
Update Task Scale In Protection Endpoint URI and handler to match latest decision.
Add String method to TaskProtection type
…ion Call (#3397)

* Create ECS client for task protection and Implement UpdateTaskProtection Call
* Implement GetTaskProtection Call
* update task protection responses format

* Remove ExpiresInMinutes validation, remove unnecessary types and marshal functions

* Remove failure handling - instead of returning 4XX http status code, return 200 instead
@Realmonia Realmonia marked this pull request as ready for review October 11, 2022 17:29
@Realmonia Realmonia requested a review from a team as a code owner October 11, 2022 17:29
@Realmonia Realmonia merged commit cc23b4e into dev Oct 12, 2022
@jtarchie
Copy link

Has anyone reported issues with this change?

We've noticed that since November 13th our ECS cluster's have been more aggressive in scaling down the nodes (instances). I'm just tracing this with release notes and similar feature scope. I can give more details privately.

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.

5 participants