Skip to content

fix(aws): use rolling ECS deployments - #48

Merged
tylerslaton merged 1 commit into
mainfrom
agent/rolling-ecs-deployments
Aug 13, 2026
Merged

fix(aws): use rolling ECS deployments#48
tylerslaton merged 1 commit into
mainfrom
agent/rolling-ecs-deployments

Conversation

@tylerslaton

Copy link
Copy Markdown
Contributor

Summary

  • configure ECS services to keep the existing task healthy while starting its replacement
  • assert the rolling deployment percentages in the CDK test suite
  • document the brief two-task overlap during deployments

Why

With a desired count of one, minimumHealthyPercent: 0 and
maximumHealthyPercent: 100 require ECS to stop the running task before it can
start the replacement. That creates an immediate Kite outage during every image
deployment.

Using minimumHealthyPercent: 100 and maximumHealthyPercent: 200 lets ECS
start and health-check the replacement before retiring the prior task. The
deployment circuit breaker and automatic rollback remain enabled.

Verification

  • pnpm check-types
  • pnpm test (170 tests)
  • (cd agent && uv run pytest) (72 tests)
  • node node_modules/railway/dist/iac/bin.js
  • (cd deployment/aws && pnpm build && pnpm test) (10 tests)
  • verified kite-staging, kite-prod, and kite-community remain healthy with one running task after applying the equivalent live ECS configuration

@tylerslaton
tylerslaton marked this pull request as ready for review August 13, 2026 00:35
@tylerslaton
tylerslaton merged commit e7ec090 into main Aug 13, 2026
3 checks passed
@tylerslaton
tylerslaton deleted the agent/rolling-ecs-deployments branch August 13, 2026 00:35
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.

1 participant