What does it mean to enable CB when a rollback is false?
Asked Answered
S

1

8

what is the difference?

1.

--deployment-configuration "deploymentCircuitBreaker={enable=true,rollback=false}"
--deployment-configuration "deploymentCircuitBreaker={enable=false,rollback=false}"

What does it mean to enable CB when a rollback is false?

Selfsupport answered 30/3, 2021 at 23:49 Comment(0)
M
1

Circuit breaker is a new feature to help ECS detect that your service deployment failed and stop your service from continuously trying to restart tasks. I haven't used this feature directly but, based on documentation, if you enable circuit breaker without rollback, you will get the benefit of ECS failing fast and not thrashing your tasks until something tells it to stop trying (e.g. CloudFormation or manual intervention).

References:

Morocco answered 31/3, 2021 at 0:34 Comment(3)
I didn't ask for the circuit breaker itself. Look at the enable state. I asked the difference between the two.Selfsupport
im not sure what in the answer is not satisfactory, if you don't enable circuit breaker, your task may thrash and ECS may keep restarting it until something external stops it. If you enable circuit breaker, you ECS will be better at detecting a failure and stop trying to restart it and mark it failed faster. Setting enable=false is equivalent to not specifying the deploymentCircuitBreaker option: circuit breaker won't be used.Morocco
I think what the OP means is what is the difference between rollback=false and rollback=true? Would rollback=false leave the service in a broken state?Pridgen

© 2022 - 2024 — McMap. All rights reserved.