From 0c25a8287bc9079f1c90f7b75f3f044b85c115d6 Mon Sep 17 00:00:00 2001 From: Mario Mupo <43968294+mamu0@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:48:39 +0200 Subject: [PATCH 1/3] [CES-131] Scale Up io-p-cosmos-api (#1204) --- src/common/_modules/cosmos_api/locals.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/_modules/cosmos_api/locals.tf b/src/common/_modules/cosmos_api/locals.tf index 697681719..20b57ab82 100644 --- a/src/common/_modules/cosmos_api/locals.tf +++ b/src/common/_modules/cosmos_api/locals.tf @@ -55,7 +55,7 @@ locals { partition_key_version = null default_ttl = -1 autoscale_settings = { - max_throughput = 67000 + max_throughput = 200000 } }, { @@ -72,7 +72,7 @@ locals { partition_key_version = null default_ttl = -1 autoscale_settings = { - max_throughput = 46000 + max_throughput = 100000 } }, { @@ -124,7 +124,7 @@ locals { partition_key_path = "/fiscalCode" partition_key_version = null autoscale_settings = { - max_throughput = 48000 + max_throughput = 100000 } }, { From ae43d29112332bf4bac6df7ac030d8b5e1d24248 Mon Sep 17 00:00:00 2001 From: christian-calabrese Date: Fri, 4 Oct 2024 14:58:15 +0200 Subject: [PATCH 2/3] [CES-128] - Route traffic also to appbackendl3 (#1229) --- src/common/prod/westeurope.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/prod/westeurope.tf b/src/common/prod/westeurope.tf index 571849a74..bd2a7d484 100644 --- a/src/common/prod/westeurope.tf +++ b/src/common/prod/westeurope.tf @@ -303,8 +303,7 @@ module "application_gateway_weu" { backend_hostnames = { firmaconio_selfcare_web_app = [data.azurerm_linux_web_app.firmaconio_selfcare_web_app.default_hostname] - # app_backends = [for appbe in module.app_backend_weu : appbe.default_hostname] - app_backends = [module.app_backend_weu["1"].default_hostname, module.app_backend_weu["2"].default_hostname] + app_backends = [for appbe in module.app_backend_weu : appbe.default_hostname] } certificates = { api = "api-io-pagopa-it" From 827ba78bcc189c4c808e8a2a5b8d2b2890f59d9f Mon Sep 17 00:00:00 2001 From: Luca Cavallaro Date: Fri, 4 Oct 2024 15:19:23 +0200 Subject: [PATCH 3/3] [IOCOM-1810] Update APP_MESSAGES_API_URL (#1226) --- src/common/_modules/app_backend/data_kv.tf | 2 +- src/common/prod/README.md | 2 +- src/common/prod/data.tf | 6 +++--- src/common/prod/locals.tf | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/common/_modules/app_backend/data_kv.tf b/src/common/_modules/app_backend/data_kv.tf index e87534d85..48fd2b425 100644 --- a/src/common/_modules/app_backend/data_kv.tf +++ b/src/common/_modules/app_backend/data_kv.tf @@ -149,4 +149,4 @@ data "azurerm_key_vault_secret" "app_backend_PRE_SHARED_KEY" { data "azurerm_key_vault_secret" "app_backend_TRIAL_SYSTEM_APIM_KEY" { name = "appbackend-TRIAL-SYSTEM-APIM-KEY" key_vault_id = var.key_vault_common.id -} \ No newline at end of file +} diff --git a/src/common/prod/README.md b/src/common/prod/README.md index dd9c87193..1a9c8286b 100644 --- a/src/common/prod/README.md +++ b/src/common/prod/README.md @@ -30,7 +30,7 @@ | [azurerm_resource_group.github_runner](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource | | [azurerm_api_management.trial_system](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/api_management) | data source | | [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config) | data source | -| [azurerm_linux_function_app.app_messages](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source | +| [azurerm_linux_function_app.app_messages_xl](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source | | [azurerm_linux_function_app.eucovidcert](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source | | [azurerm_linux_function_app.function_assets_cdn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source | | [azurerm_linux_function_app.function_cgn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/linux_function_app) | data source | diff --git a/src/common/prod/data.tf b/src/common/prod/data.tf index bfe0800d0..502d4208a 100644 --- a/src/common/prod/data.tf +++ b/src/common/prod/data.tf @@ -55,10 +55,10 @@ data "azurerm_linux_function_app" "function_profile" { resource_group_name = "${local.project_itn}-profile-rg-0${count.index + 1}" } -data "azurerm_linux_function_app" "app_messages" { +data "azurerm_linux_function_app" "app_messages_xl" { count = local.app_messages_count - name = "${local.project_weu_legacy}-app-messages-fn-${count.index + 1}" - resource_group_name = "${local.project_weu_legacy}-app-messages-rg-${count.index + 1}" + name = "${local.project_weu_legacy}-weu-com-citizen-func-0${count.index + 1}" + resource_group_name = "${local.project_weu_legacy}-weu-com-rg-01" } data "azurerm_linux_function_app" "services_app_backend_function_app" { diff --git a/src/common/prod/locals.tf b/src/common/prod/locals.tf index 30ecec028..a9cf694ea 100644 --- a/src/common/prod/locals.tf +++ b/src/common/prod/locals.tf @@ -68,7 +68,7 @@ locals { backend_hostnames = { app = [for key, value in data.azurerm_linux_function_app.function_profile : value.default_hostname] - app_messages = [for key, value in data.azurerm_linux_function_app.app_messages : value.default_hostname] + app_messages = [for key, value in data.azurerm_linux_function_app.app_messages_xl : value.default_hostname] assets_cdn = data.azurerm_linux_function_app.function_assets_cdn.default_hostname services_app_backend = data.azurerm_linux_function_app.services_app_backend_function_app.default_hostname lollipop = data.azurerm_linux_function_app.lollipop_function.default_hostname @@ -264,4 +264,3 @@ locals { } ] } -