libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

Description

 
Synopsis

Documentation

data PredictiveScalingMetricSpecification Source #

This structure specifies the metrics and target utilization settings for a predictive scaling policy.

You must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.

Example

  • You create a predictive scaling policy and specify ALBRequestCount as the value for the metric pair and 1000.0 as the target value. For this type of metric, you must provide the metric dimension for the corresponding target group, so you also provide a resource label for the Application Load Balancer target group that is attached to your Auto Scaling group.
  • The number of requests the target group receives per minute provides the load metric, and the request count averaged between the members of the target group provides the scaling metric. In CloudWatch, this refers to the RequestCount and RequestCountPerTarget metrics, respectively.
  • For optimal use of predictive scaling, you adhere to the best practice of using a dynamic scaling policy to automatically scale between the minimum capacity and maximum capacity in response to real-time changes in resource utilization.
  • Amazon EC2 Auto Scaling consumes data points for the load metric over the last 14 days and creates an hourly load forecast for predictive scaling. (A minimum of 24 hours of data is required.)
  • After creating the load forecast, Amazon EC2 Auto Scaling determines when to reduce or increase the capacity of your Auto Scaling group in each hour of the forecast period so that the average number of requests received by each instance is as close to 1000 requests per minute as possible at all times.

See: newPredictiveScalingMetricSpecification smart constructor.

Constructors

PredictiveScalingMetricSpecification' 

Fields

Instances

Instances details
Eq PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

Read PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

Show PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

Generic PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

NFData PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

Hashable PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

ToQuery PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

FromXML PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

type Rep PredictiveScalingMetricSpecification Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification

type Rep PredictiveScalingMetricSpecification = D1 ('MetaData "PredictiveScalingMetricSpecification" "Amazonka.AutoScaling.Types.PredictiveScalingMetricSpecification" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "PredictiveScalingMetricSpecification'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "predefinedScalingMetricSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PredictiveScalingPredefinedScalingMetric)) :*: S1 ('MetaSel ('Just "predefinedMetricPairSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PredictiveScalingPredefinedMetricPair))) :*: (S1 ('MetaSel ('Just "predefinedLoadMetricSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PredictiveScalingPredefinedLoadMetric)) :*: S1 ('MetaSel ('Just "targetValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double))))

predictiveScalingMetricSpecification_predefinedMetricPairSpecification :: Lens' PredictiveScalingMetricSpecification (Maybe PredictiveScalingPredefinedMetricPair) Source #

The metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.