From fd5e1e1719472b341cb5ad32db32f48262c65687 Mon Sep 17 00:00:00 2001 From: Xavier Basty Date: Thu, 14 Sep 2023 15:57:35 +0200 Subject: [PATCH] chore: set DocDB available memory threshold to 3GiB --- terraform/cloudwatch/README.md | 2 +- terraform/cloudwatch/variables.tf | 2 +- terraform/res_cloudwatch.tf | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/terraform/cloudwatch/README.md b/terraform/cloudwatch/README.md index 27e2df2..393db7a 100644 --- a/terraform/cloudwatch/README.md +++ b/terraform/cloudwatch/README.md @@ -29,7 +29,7 @@ This module configures the cloudwatch alarms and webhook forwarding. | [docdb\_cluster\_id](#input\_docdb\_cluster\_id) | The DocumentDB cluster ID |
string
|
n/a
| yes | | [docdb\_cpu\_threshold](#input\_docdb\_cpu\_threshold) | The DocumentDB CPU utilization alarm threshold in percents |
number
|
80
| no | | [docdb\_low\_memory\_throttling\_threshold](#input\_docdb\_low\_memory\_throttling\_threshold) | The DocumentDB low memory throttling alarm threshold in number of operations per period |
number
|
2
| no | -| [docdb\_memory\_threshold](#input\_docdb\_memory\_threshold) | The DocumentDB available memory alarm threshold in GiB |
number
|
4
| no | +| [docdb\_memory\_threshold](#input\_docdb\_memory\_threshold) | The DocumentDB available memory alarm threshold in GiB |
number
|
3
| no | | [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | The name of the ECS cluster running the application |
string
|
n/a
| yes | | [ecs\_cpu\_threshold](#input\_ecs\_cpu\_threshold) | The ECS CPU utilization alarm threshold in percents |
number
|
80
| no | | [ecs\_memory\_threshold](#input\_ecs\_memory\_threshold) | The ECS memory utilization alarm threshold in percents |
number
|
80
| no | diff --git a/terraform/cloudwatch/variables.tf b/terraform/cloudwatch/variables.tf index de6d14a..e3ee91f 100644 --- a/terraform/cloudwatch/variables.tf +++ b/terraform/cloudwatch/variables.tf @@ -45,7 +45,7 @@ variable "docdb_cpu_threshold" { variable "docdb_memory_threshold" { description = "The DocumentDB available memory alarm threshold in GiB" type = number - default = 4 + default = 3 } variable "docdb_low_memory_throttling_threshold" { diff --git a/terraform/res_cloudwatch.tf b/terraform/res_cloudwatch.tf index 4265e55..5dd3665 100644 --- a/terraform/res_cloudwatch.tf +++ b/terraform/res_cloudwatch.tf @@ -7,6 +7,5 @@ module "cloudwatch" { ecs_cluster_name = module.ecs.ecs_cluster_name ecs_service_name = module.ecs.ecs_service_name - docdb_cluster_id = module.keystore.cluster_id - docdb_memory_threshold = module.this.stage == "prod" ? 4 : 2 + docdb_cluster_id = module.keystore.cluster_id }