Skip to content

Commit

Permalink
Nomis: DSOS-2359: alarm fix v2 (#4114)
Browse files Browse the repository at this point in the history
* tweak memory threshold for DR server

* whitespace
  • Loading branch information
drobinson-moj authored Nov 22, 2023
1 parent a5f187c commit 64c42d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion terraform/environments/nomis/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ locals {
prod-nomis-db-1-b = merge(local.database_ec2, {
cloudwatch_metric_alarms = merge(
local.database_ec2_cloudwatch_metric_alarms,
module.baseline_presets.cloudwatch_metric_alarms.ec2_instance_cwagent_collectd_oracle_db_connected,
module.baseline_presets.cloudwatch_metric_alarms.ec2_instance_cwagent_collectd_oracle_db_connected, {
high-memory-usage = merge(local.database_ec2_cloudwatch_metric_alarms["high-memory-usage"], {
threshold = "99" # Sandhya confirmed this is OK while in DR mode
})
}
)
config = merge(local.database_ec2.config, {
ami_name = "nomis_rhel_7_9_oracledb_11_2_release_2023-07-02T00-00-39.521Z"
Expand Down
4 changes: 2 additions & 2 deletions terraform/environments/nomis/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ locals {
autoscaling_group = merge(local.weblogic_ec2.autoscaling_group, {
desired_capacity = 0
})
## cloudwatch_metric_alarms = local.weblogic_cloudwatch_metric_alarms
## cloudwatch_metric_alarms = local.weblogic_cloudwatch_metric_alarms
config = merge(local.weblogic_ec2.config, {
ami_name = "nomis_rhel_6_10_weblogic_appserver_10_3_release_2023-03-15T17-18-22.178Z"
instance_profile_policies = concat(local.weblogic_ec2.config.instance_profile_policies, [
Expand Down Expand Up @@ -434,7 +434,7 @@ locals {
autoscaling_group = merge(local.weblogic_ec2.autoscaling_group, {
desired_capacity = 0
})
## cloudwatch_metric_alarms = local.weblogic_cloudwatch_metric_alarms
## cloudwatch_metric_alarms = local.weblogic_cloudwatch_metric_alarms
config = merge(local.weblogic_ec2.config, {
ami_name = "nomis_rhel_6_10_weblogic_appserver_10_3_release_2023-03-15T17-18-22.178Z"
instance_profile_policies = concat(local.weblogic_ec2.config.instance_profile_policies, [
Expand Down

0 comments on commit 64c42d2

Please sign in to comment.