This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Calculates the sum of all instances metrics and divides by the number of instances (average) | |
instancesStatistics Statistics.average | |
// Selects the instance metric with the greatest value (maximum) | |
instancesStatistics Statistics.maximum | |
// Selects the instance metric with the smallest value (minimum) | |
instancesStatistics Statistics.minimum | |
// Selects the instance metric that is greater than 10% of the other metrics and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minAllowedInstances 1 | |
maxAllowedInstances 2 | |
scalingRules ([ scalingRule { | |
serviceStatistics { | |
metric "Total Requests Count" | |
movingTimeRangeInSeconds 20 | |
statistics Statistics.maximumThroughput | |
} |