Skip to content

Commit 33df636

Browse files
committed
fix: proper inc scale for nonscale and tarpit and Max Pool Size set to 100
1 parent 1bd828c commit 33df636

1 file changed

Lines changed: 46 additions & 6 deletions

File tree

infrastructure/tf-core/environments/development.tfvars

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,29 @@ app_service_plan = {
197197
scaling_rule = {
198198
metric = "CpuPercentage"
199199

200-
capacity_min = "1"
201-
capacity_max = "1"
202-
capacity_def = "1"
200+
capacity_min = "1"
201+
capacity_max = "1"
202+
capacity_def = "1"
203+
204+
time_grain = "PT1M"
205+
statistic = "Average"
206+
time_window = "PT1M"
207+
time_aggregation = "Average"
208+
209+
inc_operator = "GreaterThanOrEqual"
210+
inc_threshold = 20
211+
inc_scale_direction = "Increase"
212+
inc_scale_type = "ExactCount"
213+
inc_scale_value = 1
214+
inc_scale_cooldown = "PT10M"
215+
216+
dec_operator = "LessThan"
217+
dec_threshold = 20
218+
dec_scale_direction = "Decrease"
219+
dec_scale_type = "ExactCount"
220+
dec_scale_value = 1
221+
dec_scale_cooldown = "PT5M"
222+
203223
}
204224
}
205225
}
@@ -228,9 +248,29 @@ app_service_plan = {
228248
scaling_rule = {
229249
metric = "CpuPercentage"
230250

231-
capacity_min = "1"
232-
capacity_max = "1"
233-
capacity_def = "1"
251+
capacity_min = "1"
252+
capacity_max = "1"
253+
capacity_def = "1"
254+
255+
time_grain = "PT1M"
256+
statistic = "Average"
257+
time_window = "PT1M"
258+
time_aggregation = "Average"
259+
260+
inc_operator = "GreaterThanOrEqual"
261+
inc_threshold = 20
262+
inc_scale_direction = "Increase"
263+
inc_scale_type = "ExactCount"
264+
inc_scale_value = 1
265+
inc_scale_cooldown = "PT10M"
266+
267+
dec_operator = "LessThan"
268+
dec_threshold = 20
269+
dec_scale_direction = "Decrease"
270+
dec_scale_type = "ExactCount"
271+
dec_scale_value = 1
272+
dec_scale_cooldown = "PT5M"
273+
234274
}
235275
}
236276
}

0 commit comments

Comments
 (0)