Skip to content

ECS  >  Enums  >  ThresholdType

ThresholdType

Enum Class

ThresholdType

Bases: UnknownEnumMixin, StrEnum

Determines how the deployment circuit breaker calculates the number of task failures tolerated before it triggers, based on the configured value.

Attributes

BOUNDED_PERCENT class-attribute instance-attribute
BOUNDED_PERCENT = 'BOUNDED_PERCENT'

Amazon ECS calculates the failure threshold by multiplying value by the latest service desired count, then clamping the result to a minimum of 3 and a maximum of 200. This is the default threshold type, with a default value of 50.

COUNT class-attribute instance-attribute
COUNT = 'COUNT'

Amazon ECS uses the integer provided in value directly as the failure threshold.

UNBOUNDED_PERCENT class-attribute instance-attribute
UNBOUNDED_PERCENT = 'UNBOUNDED_PERCENT'

Amazon ECS calculates the failure threshold by multiplying value by the latest service desired count, without applying the 3-to-200 bounds. Use this when the desired count is large enough that the calculated threshold should be allowed to exceed 200.