All Products
Search
Document Center

E-MapReduce:ScalingRule

Last Updated:Oct 17, 2024
ParameterTypeDescriptionExample
object

The configurations of the scaling rule.

RuleNamestring

The name of the scaling rule. This parameter is required and cannot be an empty string.

scalingByYarnMemory
TriggerTypestring

The trigger mode of the scaling rule. This parameter is required. Valid values:

  • TIME_TRIGGER: time-based scaling
  • METRICS_TRIGGER: load-based scaling
TIME_TRIGGER
ActivityTypestring

The scaling type. This parameter is required. Valid values:

  • SCALE_OUT
  • SCALE_IN
SCALE_IN
AdjustmentValueinteger

The adjustment value of the scaling rule. This parameter is required. The parameter value must be a positive integer, which indicates the number of instances that you want to add or remove.

200
TimeTriggerTimeTrigger

The description of time-based scaling.

MetricsTriggerMetricsTrigger

The description of load-based scaling.