Amazon EMR Cluster SimpleScalingPolicyConfiguration
SimpleScalingPolicyConfiguration is a subproperty of the Amazon EMR
Cluster ScalingAction property. It specifies an automatic scaling configuration that describes how the
policy adds or removes
instances, the cooldown period, and the number of Amazon EC2 instances that will be
added each time the CloudWatch metric alarm condition is satisfied.
Syntax
JSON
{ "AdjustmentType" :String, "CoolDown" :Integer, "ScalingAdjustment" :String}
YAML
AdjustmentType:StringCoolDown:IntegerScalingAdjustment:String
Properties
Note
For more information about the constraints and valid values of each property, see the SimpleScalingPolicyConfiguration data type in the Amazon EMR API Reference.
AdjustmentType-
The way in which Amazon EC2 instances are added (if
ScalingAdjustmentis a positive number) or terminated (ifScalingAdjustmentis a negative number) each time the scaling activity is triggered.CHANGE_IN_CAPACITYis the default.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 in or scale out, based on the specified
AdjustmentType. A positive value adds to the instance group's Amazon EC2 instance count while a negative number removes instances. IfAdjustmentTypeis set toEXACT_CAPACITY, the number should only be a positive integer. IfAdjustmentTypeis set toPERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as a decimal.Required: Yes
Type: Integer
