ExpressGatewayScalingTarget
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.
Contents
- autoScalingMetric
-
The metric used for auto-scaling decisions. The default metric used for an Express service is
CPUUtilization.Type: String
Valid Values:
AVERAGE_CPU | AVERAGE_MEMORY | REQUEST_COUNT_PER_TARGETRequired: No
- autoScalingTargetValue
-
The target value for the auto-scaling metric. The default value for an Express service is 60.
Type: Integer
Required: No
- maxTaskCount
-
The maximum number of tasks to run in the Express service.
Type: Integer
Required: No
- minTaskCount
-
The minimum number of tasks to run in the Express service.
Type: Integer
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: