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

BalaB
  • 101
  • 4

1 Answers1

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 :)

MLu
  • 23,798
  • 5
  • 54
  • 81