Spot Instance warning related to Draining behavior for services
henriquesantanati opened this issue · comments
Documentation page to be updated.
If someone is using Spot container instance with the ECS Service deployment configuration minimumHealthyPercent
as 100 or above the DRAINING
action triggered by the flag ECS_ENABLE_SPOT_INSTANCE_DRAINING=true
over ECS Agent configuration file will not be useful.
The goal to have this environment variable is to let the ECS Agent to set the status of the container instance as DRAINING
and the ECS Scheduler to replace the task. The task replacement will follow the deployment configuration by default. It is not clear that it will not take any action for the SPOT container instances if the minimumHealthyPercent
is equal or more than 100%. For On demand container instances, it is not a problem, since the DRAINING
status usually is actioned by the user and there is time to spin a new instance and start a new task. After that, the running task can be safely stopped without go below the minimumHealthyPercent
.
Thus, I'm raising this issue to let it more clear for the readers. Something like Important notice that the documentation already have for minimumHealthyPercent
and maximumPercent
as 100%.
This was resolved already. Thank you team!