Interface CfnCluster.ManagedScalingPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCluster.ManagedScalingPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnCluster
The policy specifies the limits for resources that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;
ManagedScalingPolicyProperty managedScalingPolicyProperty = ManagedScalingPolicyProperty.builder()
.computeLimits(ComputeLimitsProperty.builder()
.maximumCapacityUnits(123)
.minimumCapacityUnits(123)
.unitType("unitType")
// the properties below are optional
.maximumCoreCapacityUnits(123)
.maximumOnDemandCapacityUnits(123)
.build())
.scalingStrategy("scalingStrategy")
.utilizationPerformanceIndex(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCluster.ManagedScalingPolicyPropertystatic final classAn implementation forCfnCluster.ManagedScalingPolicyProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComputeLimits
The Amazon EC2 unit limits for a managed scaling policy.The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
Returns union: either
IResolvableorCfnCluster.ComputeLimitsProperty- See Also:
-
getScalingStrategy
Determines whether a custom scaling utilization performance index can be set.Possible values include ADVANCED or DEFAULT .
- See Also:
-
getUtilizationPerformanceIndex
An integer value that represents an advanced scaling strategy.Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.
- See Also:
-
builder
-