quantum-fusion / springboot_swagger_example-master-cassandra

0 stars 0 forks source link

AWS ECS containers keep restarting #28

Closed quantum-fusion closed 6 years ago

quantum-fusion commented 6 years ago

The problem is that even after deleting instances of running ECS containers on EC2, the containers keep restarting.

I tried draining the containers under the ECS management console, however draining the containers does not delete them either.

https://aws.amazon.com/premiumsupport/knowledge-center/ecs-containers-keep-restarting/

quantum-fusion commented 6 years ago

I had to delete the cluster: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CleaningUp.html#cleanup-CFN-stack

Cleaning up cluster instances: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CleaningUp.html#cleanup-CFN-stack

I did not have to delete the Cloud Formation template, because I did not create one in the first place.

quantum-fusion commented 6 years ago

I deleted the cluster, which deleted the containers that kept restarting.

Note: The spring-boot application did not restart in the containers that restarted automatically, because the tasks had to be restarted manually.

Is there a way to automate restarting of tasks?