Home › Forums › AWS › AWS Certified Solutions Architect Professional › ECS and spot instances – Spot instance draining › Reply To: ECS and spot instances – Spot instance draining
-
Hello juano1985,
Your understanding seems to be correct. The question is about reducing costs and minimizing the probability of service interruptions, not eliminating them entirely.
Amazon ECS Spot Instances can indeed provide a cost-effective solution. However, it can interrupt these instances with two minutes’ notice when it needs the capacity back.
To handle these potential interruptions, you can configure Spot Instance Draining. If a Spot Instance is marked for termination, the Amazon ECS container agent automatically sets the container instance state to
DRAINING
, which prevents new tasks from being scheduled for placement on the container instance.So, in the context of the given question, using Amazon ECS with Spot Instances and configuring Spot Instance Draining would be a suitable solution. It allows for cost reduction (due to the use of Spot Instances) and reduces the probability of service interruptions (through the use of Spot Instance Draining).
I hope this helps clarify the question!Regards,
JR @ Tutorials Dojo