Skip to content

ECS Hotswap sets minimumHealthyPercent to 0 as opposed to 50 #22241

Answered by pahud
jayhelios asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure if this is a good default value but I believe if you run an ecs service with just single task with maximumHealthyPercent=100 and you need force the task update, you probably have to set the minimumHealthyPercent to 0 otherwise the only task might not be replaced unless maximumHealthyPercent is set to 200. However, with maximumHealthyPercent=200 the new deployment will have to bring up an additional healthy task before it can terminate the original one. If the additional one is not in healthy state min>0 max>100 might not be able to replace the only task. With min=0, the only task will be immediately tore down and replaced.

As cdk hot swap is designed for development only I b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jayhelios
Comment options

@pahud
Comment options

Answer selected by jayhelios
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants