Amazon EMR InstanceGroupConfig SimpleScalingPolicyConfiguration
SimpleScalingPolicyConfiguration specifies an automatic scaling configuration
that describes how the policy adds or removes instances, the cooldown period, and
the number of
EC2 instances that are added when the CloudWatch metric alarm condition is met.
SimpleScalingPolicyConfiguration is a subproperty of the Amazon EMR
InstanceGroupConfig ScalingAction property
type.
Syntax
JSON
{ "AdjustmentType" :String, "CoolDown" :Integer, "ScalingAdjustment" :String}
YAML
AdjustmentType:StringCoolDown:IntegerScalingAdjustment:String
Properties
Note
For more information about each property, including constraints and valid values, see SimpleScalingPolicyConfiguration in the Amazon EMR API Reference.
AdjustmentType-
The way in which EC2 instances are added (if
ScalingAdjustmentis a positive number) or terminated (ifScalingAdjustmentis a negative number) when the scaling activity is triggered.CHANGE_IN_CAPACITYis the default value.Required: No
Type: String
CoolDown-
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.
Required: No
Type: Integer
ScalingAdjustment-
The amount by which to scale the instance group, based on the specified
AdjustmentType. A positive value adds to the instance group's EC2 instance count. A negative number removes instances. IfAdjustmentTypeis set toEXACT_CAPACITY, specify only a positive integer. IfAdjustmentTypeis set toPERCENT_CHANGE_IN_CAPACITY, express the value of the percentage as a decimal. For example,-0.20indicates a decrease in 20% increments of cluster capacity.Required: Yes
Type: Integer
