Skip to content

Commit

Permalink
chore: set DocDB available memory threshold to 3GiB (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
xav authored Sep 14, 2023
1 parent e1e8f26 commit 2e15a6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terraform/cloudwatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This module configures the cloudwatch alarms and webhook forwarding.
| <a name="input_docdb_cluster_id"></a> [docdb\_cluster\_id](#input\_docdb\_cluster\_id) | The DocumentDB cluster ID | <pre lang="json">string</pre> | <pre lang="json">n/a</pre> | yes |
| <a name="input_docdb_cpu_threshold"></a> [docdb\_cpu\_threshold](#input\_docdb\_cpu\_threshold) | The DocumentDB CPU utilization alarm threshold in percents | <pre lang="json">number</pre> | <pre lang="json">80</pre> | no |
| <a name="input_docdb_low_memory_throttling_threshold"></a> [docdb\_low\_memory\_throttling\_threshold](#input\_docdb\_low\_memory\_throttling\_threshold) | The DocumentDB low memory throttling alarm threshold in number of operations per period | <pre lang="json">number</pre> | <pre lang="json">2</pre> | no |
| <a name="input_docdb_memory_threshold"></a> [docdb\_memory\_threshold](#input\_docdb\_memory\_threshold) | The DocumentDB available memory alarm threshold in GiB | <pre lang="json">number</pre> | <pre lang="json">4</pre> | no |
| <a name="input_docdb_memory_threshold"></a> [docdb\_memory\_threshold](#input\_docdb\_memory\_threshold) | The DocumentDB available memory alarm threshold in GiB | <pre lang="json">number</pre> | <pre lang="json">3</pre> | no |
| <a name="input_ecs_cluster_name"></a> [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | The name of the ECS cluster running the application | <pre lang="json">string</pre> | <pre lang="json">n/a</pre> | yes |
| <a name="input_ecs_cpu_threshold"></a> [ecs\_cpu\_threshold](#input\_ecs\_cpu\_threshold) | The ECS CPU utilization alarm threshold in percents | <pre lang="json">number</pre> | <pre lang="json">80</pre> | no |
| <a name="input_ecs_memory_threshold"></a> [ecs\_memory\_threshold](#input\_ecs\_memory\_threshold) | The ECS memory utilization alarm threshold in percents | <pre lang="json">number</pre> | <pre lang="json">80</pre> | no |
Expand Down
2 changes: 1 addition & 1 deletion terraform/cloudwatch/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
3 changes: 1 addition & 2 deletions terraform/res_cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 2e15a6b

Please sign in to comment.