Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Conversation

@dfuentes
Copy link
Contributor

@dfuentes dfuentes commented Mar 9, 2017

  • Put old instances in DRAINING state before terminating them,
    allowing ECS to drain connections and move tasks.

- Put old instances in DRAINING state before terminating them,
  allowing ECS to drain connections and move tasks.
Copy link
Contributor

@achille-roussel achille-roussel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was dreaming this day would come, nice addition!

tools/roll-ami Outdated

draining_instances = copy.copy(old_instances)
while draining_instances:
time.sleep(1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait a little longer (like 5s) to avoid hammering the ECS API, AWS has ridiculously low rate limits on a lot of their endpoints.

Daniel Fuentes and others added 3 commits March 9, 2017 11:01
@achille-roussel
Copy link
Contributor

This is working like a charm!

@achille-roussel achille-roussel merged commit 32b234f into master Mar 29, 2017
@achille-roussel achille-roussel deleted the drain-instances-for-rollover branch March 29, 2017 01:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants