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

fix(fargate): start workers in parallel with lead task #2459

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

hassy
Copy link
Member

@hassy hassy commented Feb 1, 2024

This reverts the behavior introduced in [1] where worker tasks may wait for up to 60s whilst the lead task is preparing npm dependencies.

The only benefit of waiting is to save up to 60s worth of Fargate compute costs for tests where the lead task fails to startup. This is rare.

Every test pays a penalty of having to wait for some time for the lead task to be ready before the rest of the workers even begin initializing however.

  1. fix: improve task startup logic for Fargate #2428

This reverts the behavior introduced in [1] where worker tasks
may wait for up to 60s whilst the lead task is preparing npm
dependencies.

The only benefit of waiting is to save up to 60s worth of
Fargate compute costs for tests where the lead task fails
to startup. This is rare.

Every test pays a penalty of having to wait for some time
for the lead task to be ready before the rest of the workers
even begin initializing however.

1. #2428
@hassy hassy merged commit d68482d into main Feb 2, 2024
17 of 18 checks passed
@hassy hassy deleted the hassy-art-1605-fix-fargate-startup-time-regression branch February 2, 2024 13:07
@hassy
Copy link
Member Author

hassy commented Feb 2, 2024

Failing test is due to AWS Lambda zip size bug fixed in #2457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant