Skip to content

Commit

Permalink
ER: Azure autoscaling thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-sidhu-and committed Oct 10, 2023
1 parent 89367f7 commit 5c16230
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions terraform-azure/local.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ locals {
"RAILS_SERVE_STATIC_FILES" = var.webapp_config_rails_serve_static_files
"TRACKING_ID" = var.tracking_id
"WEB_CONCURRENCY" = var.webapp_config_web_concurrency
"WEBSITES_CONTAINER_START_TIME_LIMIT" = 1800
"WEBSITES_CONTAINER_START_TIME_LIMIT" = 180
}

webapp_slot_app_settings = {
Expand All @@ -58,7 +58,7 @@ locals {
"RAILS_SERVE_STATIC_FILES" = var.webapp_config_rails_serve_static_files
"TRACKING_ID" = var.tracking_id
"WEB_CONCURRENCY" = var.webapp_config_web_concurrency
"WEBSITES_CONTAINER_START_TIME_LIMIT" = 1800
"WEBSITES_CONTAINER_START_TIME_LIMIT" = 180
}

# Background Worker Application Configuration
Expand Down Expand Up @@ -94,6 +94,6 @@ locals {
"RAILS_MAX_THREADS" = var.webapp_config_rails_max_threads
"RAILS_SERVE_STATIC_FILES" = var.webapp_config_rails_serve_static_files
"WEB_CONCURRENCY" = var.webapp_config_web_concurrency
"WEBSITES_CONTAINER_START_TIME_LIMIT" = 1800
"WEBSITES_CONTAINER_START_TIME_LIMIT" = 180
}
}
2 changes: 1 addition & 1 deletion terraform-azure/terraform-azure-app/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "azurerm_container_group" "app_worker" {
subnet_ids = [var.app_worker_subnet_id]

lifecycle {
ignore_changes = [tags, container.0.image]
ignore_changes = [tags]
}

#checkov:skip=CKV2_AZURE_28:Using VNet
Expand Down
4 changes: 2 additions & 2 deletions terraform-azure/terraform-azure-web/webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ resource "azurerm_monitor_autoscale_setting" "asp_as" {
metric_resource_id = azurerm_service_plan.asp.id
statistic = "Average"
operator = "GreaterThan"
threshold = 70
threshold = 80
time_aggregation = "Average"
time_grain = "PT1M"
time_window = "PT10M"
Expand All @@ -281,7 +281,7 @@ resource "azurerm_monitor_autoscale_setting" "asp_as" {
metric_resource_id = azurerm_service_plan.asp.id
statistic = "Average"
operator = "LessThan"
threshold = 50
threshold = 65
time_aggregation = "Average"
time_grain = "PT1M"
time_window = "PT10M"
Expand Down

0 comments on commit 5c16230

Please sign in to comment.