Skip to content

Commit

Permalink
Alarm sensitivity (#717)
Browse files Browse the repository at this point in the history
* Updated runner used in github actions

* Increased sensitivity of alarm triggering horizontal scaling
  • Loading branch information
vivid-cpreston authored May 15, 2023
1 parent 210c4ac commit 45f926d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform/autoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ resource "aws_appautoscaling_policy" "wfnews_apisix_down" {
resource "aws_cloudwatch_metric_alarm" "wfnews_service_cpu_high" {
alarm_name = "wfnews_cpu_utilization_high"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "2"
evaluation_periods = "1"
metric_name = "CPUUtilization"
namespace = "AWS/ECS"
period = "60"
statistic = "Average"
threshold = "85"
threshold = "50"

dimensions = {
ClusterName = aws_ecs_cluster.wfnews_main.name
Expand All @@ -122,12 +122,12 @@ resource "aws_cloudwatch_metric_alarm" "wfnews_service_cpu_high" {
resource "aws_cloudwatch_metric_alarm" "wfnews_apisix_service_cpu_high" {
alarm_name = "wfnews_apisix_cpu_utilization_high"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "2"
evaluation_periods = "1"
metric_name = "CPUUtilization"
namespace = "AWS/ECS"
period = "60"
statistic = "Average"
threshold = "85"
threshold = "50"

dimensions = {
ClusterName = aws_ecs_cluster.wfnews_main.name
Expand Down Expand Up @@ -255,12 +255,12 @@ resource "aws_cloudwatch_metric_alarm" "wfnews_client_service_cpu_low" {
resource "aws_cloudwatch_metric_alarm" "wfnews_client_service_cpu_high" {
alarm_name = "wfnews_client_cpu_utilization_high"
comparison_operator = "GreaterThanOrEqualToThreshold"
evaluation_periods = "2"
evaluation_periods = "1"
metric_name = "CPUUtilization"
namespace = "AWS/ECS"
period = "60"
statistic = "Average"
threshold = "85"
threshold = "50"

dimensions = {
ClusterName = aws_ecs_cluster.wfnews_main.name
Expand Down

0 comments on commit 45f926d

Please sign in to comment.