From 1bd031cacbe4bf78a9c0d91da525f0e0805d9606 Mon Sep 17 00:00:00 2001 From: Andrea Grillo Date: Fri, 27 Sep 2024 10:05:03 +0200 Subject: [PATCH] Update AppGw autoscaler --- src/common/_modules/application_gateway/main.tf | 8 ++++---- src/common/_modules/application_gateway/variables.tf | 12 +----------- src/common/prod/westeurope.tf | 4 +--- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/common/_modules/application_gateway/main.tf b/src/common/_modules/application_gateway/main.tf index c827d13b1..38ebcf618 100644 --- a/src/common/_modules/application_gateway/main.tf +++ b/src/common/_modules/application_gateway/main.tf @@ -803,9 +803,9 @@ module "app_gw" { identity_ids = [azurerm_user_assigned_identity.appgateway.id] # Scaling - # min_capacity = var.min_capacity - app_gateway_min_capacity = "10" - app_gateway_max_capacity = var.max_capacity + # 4 capacity=baseline, 10 capacity=high volume event, 15 capacity=very high volume event + app_gateway_min_capacity = "20" + app_gateway_max_capacity = "100" alerts_enabled = var.alerts_enabled @@ -943,4 +943,4 @@ module "app_gw" { } tags = var.tags -} \ No newline at end of file +} diff --git a/src/common/_modules/application_gateway/variables.tf b/src/common/_modules/application_gateway/variables.tf index 3265493f6..cc104d71f 100644 --- a/src/common/_modules/application_gateway/variables.tf +++ b/src/common/_modules/application_gateway/variables.tf @@ -93,16 +93,6 @@ variable "backend_hostnames" { description = "Information of the backend hostnames" } -variable "min_capacity" { - type = number - default = 0 -} - -variable "max_capacity" { - type = number - default = 2 -} - variable "alerts_enabled" { type = bool description = "Enable alerts" @@ -117,4 +107,4 @@ variable "deny_paths" { variable "error_action_group_id" { type = string description = "Azure Monitor error action group id" -} \ No newline at end of file +} diff --git a/src/common/prod/westeurope.tf b/src/common/prod/westeurope.tf index 9d15d4cc9..54ea6f6df 100644 --- a/src/common/prod/westeurope.tf +++ b/src/common/prod/westeurope.tf @@ -326,8 +326,6 @@ module "application_gateway_weu" { } cidr_subnet = ["10.0.13.0/24"] - min_capacity = 4 # 4 capacity=baseline, 10 capacity=high volume event, 15 capacity=very high volume event - max_capacity = 50 alerts_enabled = true deny_paths = ["\\/admin\\/(.*)"] error_action_group_id = module.monitoring_weu.action_groups.error @@ -523,4 +521,4 @@ module "app_backend_li_weu" { } tags = local.tags -} \ No newline at end of file +}