Specify the load-based auto scaling configuration for a specified layer. For more information, see Managing Load with Time-based and Load-based Instances.
See https://www.paws-r-sdk.com/docs/opsworks_set_load_based_auto_scaling/ for full documentation.
opsworks_set_load_based_auto_scaling(
LayerId,
Enable = NULL,
UpScaling = NULL,
DownScaling = NULL
)
[required] The layer ID.
Enables load-based auto scaling for the layer.
An AutoScalingThresholds
object with the upscaling threshold
configuration. If the load exceeds these thresholds for a specified
amount of time, OpsWorks Stacks starts a specified number of instances.
An AutoScalingThresholds
object with the downscaling threshold
configuration. If the load falls below these thresholds for a specified
amount of time, OpsWorks Stacks stops a specified number of instances.