0

We have a task that loads some configuration from database. After the settings are updated on db we would like to be able to restart all the tasks in a service so that the settings propagate to all instances.

I used

aws ecs update-service --force-new-deployment --cluster CLUSTER_NAME --service SERVICE_NAME

But this causes downtime. As this stops and start

1 Answer 1

1

Best to scale out your ECS Service, e.g. from 10 to 20 tasks, and once they're up scale down again to 10, that will kill the obsoleted ones.

Check out ECS Rolling Updates.

Hope that helps :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.