Skip to content

Instantly share code, notes, and snippets.

View itaifrenkel's full-sized avatar

Itai Friendinger itaifrenkel

  • Forter
  • Tel Aviv
View GitHub Profile
// 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
@itaifrenkel
itaifrenkel / tomcat_auto_scaling.groovy
Created May 8, 2012 21:24 — forked from tamirko/tomcat_auto_scaling.groovy
tomcat auto scaling (snippet)
minAllowedInstances 1
maxAllowedInstances 2
scalingRules ([ scalingRule {
serviceStatistics {
metric "Total Requests Count"
movingTimeRangeInSeconds 20
statistics Statistics.maximumThroughput
}