Skip to content

Commit

Permalink
[IOCOM-1128] Update scaling rules of messages functions (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacavallaro authored Apr 4, 2024
1 parent ed22f49 commit adb8a96
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/domains/messages-app/07_function_pushnotif.tf
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ resource "azurerm_monitor_autoscale_setting" "push_notif_function" {
metric_namespace = "microsoft.web/sites"
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
time_window = "PT1M"
time_aggregation = "Average"
operator = "GreaterThan"
threshold = 3000
Expand Down Expand Up @@ -297,7 +297,7 @@ resource "azurerm_monitor_autoscale_setting" "push_notif_function" {
metric_namespace = "microsoft.web/sites"
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
time_window = "PT15M"
time_aggregation = "Average"
operator = "LessThan"
threshold = 2000
Expand All @@ -308,7 +308,7 @@ resource "azurerm_monitor_autoscale_setting" "push_notif_function" {
direction = "Decrease"
type = "ChangeCount"
value = "1"
cooldown = "PT20M"
cooldown = "PT10M"
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/domains/messages-app/10_function_messages.tf
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ resource "azurerm_monitor_autoscale_setting" "app_messages_function" {
metric_namespace = "microsoft.web/sites"
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
time_window = "PT1M"
time_aggregation = "Average"
operator = "GreaterThan"
threshold = 3000
Expand Down Expand Up @@ -292,7 +292,7 @@ resource "azurerm_monitor_autoscale_setting" "app_messages_function" {
metric_namespace = "microsoft.web/sites"
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
time_window = "PT15M"
time_aggregation = "Average"
operator = "LessThan"
threshold = 2000
Expand All @@ -303,7 +303,7 @@ resource "azurerm_monitor_autoscale_setting" "app_messages_function" {
direction = "Decrease"
type = "ChangeCount"
value = "1"
cooldown = "PT20M"
cooldown = "PT10M"
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/domains/messages-app/11_function_cqrs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ resource "azurerm_monitor_autoscale_setting" "function_messages_cqrs" {
metric_namespace = "microsoft.web/sites"
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
time_window = "PT1M"
time_aggregation = "Average"
operator = "GreaterThan"
threshold = 3500
Expand Down Expand Up @@ -348,7 +348,7 @@ resource "azurerm_monitor_autoscale_setting" "function_messages_cqrs" {
metric_namespace = "microsoft.web/sites"
time_grain = "PT1M"
statistic = "Average"
time_window = "PT5M"
time_window = "PT15M"
time_aggregation = "Average"
operator = "LessThan"
threshold = 2500
Expand All @@ -359,7 +359,7 @@ resource "azurerm_monitor_autoscale_setting" "function_messages_cqrs" {
direction = "Decrease"
type = "ChangeCount"
value = "1"
cooldown = "PT20M"
cooldown = "PT10M"
}
}

Expand Down

0 comments on commit adb8a96

Please sign in to comment.