Interface ICpuUtilizationScalingProps
The properties for enabling scaling based on CPU utilization.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface ICpuUtilizationScalingProps : IBaseTargetTrackingProps
Syntax (vb)
Public Interface ICpuUtilizationScalingProps
Inherits IBaseTargetTrackingProps
Remarks
ExampleMetadata: infused
Examples
ApplicationTargetGroup target;
BaseService service;
var scaling = service.AutoScaleTaskCount(new EnableScalingProps { MaxCapacity = 10 });
scaling.ScaleOnCpuUtilization("CpuScaling", new CpuUtilizationScalingProps {
TargetUtilizationPercent = 50
});
scaling.ScaleOnRequestCount("RequestScaling", new RequestCountScalingProps {
RequestsPerTarget = 10000,
TargetGroup = target
});
Synopsis
Properties
TargetUtilizationPercent | The target value for CPU utilization across all tasks in the service. |
Properties
TargetUtilizationPercent
The target value for CPU utilization across all tasks in the service.
double TargetUtilizationPercent { get; }
Property Value
System.Double