Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CES-126] Update AppGw autoscaler #1195

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/common/_modules/application_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -943,4 +943,4 @@ module "app_gw" {
}

tags = var.tags
}
}
12 changes: 1 addition & 11 deletions src/common/_modules/application_gateway/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -117,4 +107,4 @@ variable "deny_paths" {
variable "error_action_group_id" {
type = string
description = "Azure Monitor error action group id"
}
}
4 changes: 1 addition & 3 deletions src/common/prod/westeurope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -523,4 +521,4 @@ module "app_backend_li_weu" {
}

tags = local.tags
}
}
Loading