aloof-hydrogen-58523
11/24/2025, 9:23 PMtall-airline-16756
11/24/2025, 9:24 PMtall-airline-16756
11/24/2025, 9:25 PMhealthCheckGracePeriodSeconds) gives the new task time to start and pass health checks before the old task is terminated.
3. Use ECS deployment integration (or CodeDeploy blue/green) so ECS/ALB deregisters old targets automatically during deploys, preventing new traffic to the old (blue) tasks.
4. Rely on LiveKit’s SIGTERM handling for graceful shutdown: when the container receives SIGTERM it stops accepting new participants and drains active sessions.
5. Set container `stopTimeout`/task stop timeout to match the deregistration delay (e.g., 600s) so ECS waits long enough for LiveKit to finish draining before force‑stopping the container.
If you’d like, I can:
• Suggest exact ALB/ECS console or Terraform settings to apply these values, or
• Help tune times (deregistration delay, stopTimeout, grace period) based on your typical session lengths. Which would you prefer? Sources: Deploying to custom environments | LiveKit Docs | Deploy to Kubernetes | LiveKit docs | Distributed Setup | LiveKit docs