Skip to content

Commit

Permalink
Fix comments and policy reference name
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleung-appzen committed Aug 27, 2020
1 parent d950766 commit 0dfb799
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ resource "aws_cloudwatch_metric_alarm" "queue_time" {
comparison_operator = "GreaterThanThreshold"
evaluation_periods = "1"
threshold = "${var.queue_time_threshold}"
alarm_actions = ["${aws_appautoscaling_policy.queue_time_up.arn}"]
alarm_actions = ["${aws_appautoscaling_policy.scale_queuetime_up.arn}"]
metric_query {
id = "queuetime"
expression = "((visible+notvisible) * ${var.queue_worker_timing}) / (taskcount * ${var.queue_task_worker_count}))"
Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ variable "queue_name" {
}

variable "queue_time_threshold" {
description = "Calculation of time it takes for queue job to get start processing ((Queue Size * Worker Timing) / (number of Current Tasks * number of Workers per Task))"
default = ""
description = "Threshold for queue_time = ((Queue Size * Worker Timing) / (number of Current Tasks * number of Workers per Task))"
default = "0"
}

variable "queue_worker_timing" {
description = "Calculation of time it takes for queue job to get start processing ((Queue Size * Worker Timing) / (number of current tasks * Number Of workers per task))"
description = "Worker timing in calculation queue_time_threshold"
default = "1"
}

variable "queue_task_worker_count" {
description = "Calculation of time it takes for queue job to get start processing ((Queue Size * Worker Timing) / (number of current tasks * Number Of workers per task))"
description = "number of Workers per Task in calculation queue_time_threshold"
default = "1"
}

Expand Down

0 comments on commit 0dfb799

Please sign in to comment.