PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
opsworks
**To set the load-based scaling configuration for a layer** The following example enables load-based scaling for a specified layer and sets the configuration for that layer. You must use ``create-instance`` to add load-based instances to the layer. :: aws opsworks --region us-east-1 set-load-based-auto-scaling --layer-id 523569ae-2faf-47ac-b39e-f4c4b381f36d --enable --up-scaling file://upscale.json --down-scaling file://downscale.json The example puts the upscaling threshold settings in a separate file in the working directory named ``upscale.json``, which contains the following. :: { "InstanceCount": 2, "ThresholdsWaitTime": 3, "IgnoreMetricsTime": 3, "CpuThreshold": 85, "MemoryThreshold": 85, "LoadThreshold": 85 } The example puts the downscaling threshold settings in a separate file in the working directory named ``downscale.json``, which contains the following. :: { "InstanceCount": 2, "ThresholdsWaitTime": 3, "IgnoreMetricsTime": 3, "CpuThreshold": 35, "MemoryThreshold": 30, "LoadThreshold": 30 } *Output*: None. **More Information** For more information, see `Using Automatic Load-based Scaling`_ in the *AWS OpsWorks User Guide*. .. _`Using Automatic Load-based Scaling`: http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling-loadbased.html
[-] get-hostname-suggestion.rst
[edit]
[-] describe-apps.rst
[edit]
[-] describe-load-based-auto-scaling.rst
[edit]
[-] update-rds-db-instance.rst
[edit]
[-] create-deployment.rst
[edit]
[-] describe-timebased-auto-scaling.rst
[edit]
[-] create-user-profile.rst
[edit]
[-] disassociate-elastic-ip.rst
[edit]
[-] start-instance.rst
[edit]
[-] describe-elastic-load-balancers.rst
[edit]
[-] delete-instance.rst
[edit]
[-] describe-layers.rst
[edit]
[-] deregister-volume.rst
[edit]
[-] describe-deployments.rst
[edit]
[+]
..
[-] delete-user-profile.rst
[edit]
[-] describe-user-profiles.rst
[edit]
[-] update-my-user-profile.rst
[edit]
[-] describe-my-user-profile.rst
[edit]
[-] register.rst
[edit]
[-] create-stack.rst
[edit]
[-] describe-rds-db-instances.rst
[edit]
[-] assign-instance.rst
[edit]
[-] describe-instances.rst
[edit]
[-] describe-volumes.rst
[edit]
[-] update-elastic-ip.rst
[edit]
[-] delete-stack.rst
[edit]
[-] stop-stack.rst
[edit]
[-] create-layer.rst
[edit]
[-] delete-app.rst
[edit]
[-] update-volume.rst
[edit]
[-] set-time-based-auto-scaling.rst
[edit]
[-] stop-instance.rst
[edit]
[-] register-rds-db-instance.rst
[edit]
[-] start-stack.rst
[edit]
[-] describe-permissions.rst
[edit]
[-] describe-stacks.rst
[edit]
[-] associate-elastic-ip.rst
[edit]
[-] update-instance.rst
[edit]
[-] reboot-instance.rst
[edit]
[-] register-volume.rst
[edit]
[-] deregister-rds-db-instance.rst
[edit]
[-] update-app.rst
[edit]
[-] describe-elastic-ips.rst
[edit]
[-] register-elastic-ip.rst
[edit]
[-] unassign-volume.rst
[edit]
[-] describe-commands.rst
[edit]
[-] describe-raid-arrays.rst
[edit]
[-] detach-elastic-load-balancer.rst
[edit]
[-] unassign-instance.rst
[edit]
[-] set-load-based-auto-scaling.rst
[edit]
[-] deregister-elastic-ip.rst
[edit]
[-] update-layer.rst
[edit]
[-] describe-stack-summary.rst
[edit]
[-] attach-elastic-load-balancer.rst
[edit]
[-] delete-layer.rst
[edit]
[-] set-permission.rst
[edit]
[-] create-app.rst
[edit]
[-] create-instance.rst
[edit]
[-] deregister-instance.rst
[edit]
[-] assign-volume.rst
[edit]