Speed up ECS deploys: 30s drain + 10s health checks#44
Merged
Conversation
…terval - Reduce deregistration_delay from 300s (AWS default) to 30s - Reduce health check interval from 30s to 10s - Reduce unhealthy_threshold from 3 to 2 - Wire deregistration_delay through registry (app.yaml: routing.deregistration_delay) Deploy time drops from ~6 min to ~1 min: 20s health check + 30s drain.
Terraform PlanNo changes — infrastructure is up to date. Plan output |
The deploy script was reading the task definition from the running service, which missed structural changes from Terraform (like readonlyRootFilesystem). Now uses the latest family revision which includes Terraform's changes before swapping the image tag.
Terraform PlanNo changes — infrastructure is up to date. Plan output |
Alexanderamiri
added a commit
that referenced
this pull request
May 9, 2026
## Summary - Reduce ALB target group `deregistration_delay` from **300s** (AWS default) to **30s** - Reduce health check `interval` from 30s to **10s** and `unhealthy_threshold` from 3 to **2** - Wire `deregistration_delay` through registry for app.yaml override (`routing.deregistration_delay`) Deploy stabilization drops from ~6 min to ~1 min (20s health check + 30s drain). ## Test plan - [ ] Merge to main - [ ] Push trigger to platform-test-app - [ ] Verify `ecs-deploy` step completes in ~1-2 min instead of ~3-6 min - [ ] Verify target group has `deregistration_delay = 30`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deregistration_delayfrom 300s (AWS default) to 30sintervalfrom 30s to 10s andunhealthy_thresholdfrom 3 to 2deregistration_delaythrough registry for app.yaml override (routing.deregistration_delay)Deploy stabilization drops from ~6 min to ~1 min (20s health check + 30s drain).
Test plan
ecs-deploystep completes in ~1-2 min instead of ~3-6 minderegistration_delay = 30