ExpressGatewayScalingTarget¶
Structure Class¶
ExpressGatewayScalingTarget
dataclass
¶
Bases: _SerdeShape
Defines the auto-scaling configuration for an Express service. This determines how the service automatically adjusts the number of running tasks based on demand metrics such as CPU utilization, memory utilization, or request count per target.
Auto-scaling helps ensure your application can handle varying levels of traffic while optimizing costs by scaling down during low-demand periods. You can specify the minimum and maximum number of tasks, the scaling metric, and the target value for that metric.
Attributes¶
auto_scaling_metric
class-attribute
instance-attribute
¶
auto_scaling_metric: str | None = ...
The metric used for auto-scaling decisions. The default metric used for
an Express service is CPUUtilization.
auto_scaling_target_value
class-attribute
instance-attribute
¶
auto_scaling_target_value: int | None = ...
The target value for the auto-scaling metric. The default value for an Express service is 60.