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

Added support for automatic spot instance draining. #2205

Merged
merged 3 commits into from
Sep 16, 2019

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Sep 13, 2019

This is just a merge of the feature branch.

Description for the changelog

Added support for automatic spot instance draining.

Licensing

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

* Add ECS_SPOT_INSTANCE_DRAINING_ENABLED configuration variable

* _ENABLED->ENABLE_
* Added Spot termination poller routine

* Added unit tests for ECS client: UpdateContainerInstancesState and GetResourceTags

* Added unit tests ec2 metadata client: SpotTerminationTime

* Added unit tests to agent: isSpotTerminationTimeSet

* code review comment updates

* use assert library for unit tests
* Change termination-time query to instance-action

* code review fixups

* more code review fixups

* refactor tests to be table-driven
@sparrc sparrc added this to the 1.32.0 milestone Sep 13, 2019
@sparrc sparrc merged commit 25efaa6 into dev Sep 16, 2019
@sparrc sparrc deleted the feature/automatic-draining branch September 16, 2019 17:05
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