Skip to content

Commit

Permalink
updated the config params for scaling tasks;
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-stha committed Jul 22, 2024
1 parent b4e1ff9 commit 7219e8c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
16 changes: 16 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ module "topicmodel" {

# ecs task count
app_count = var.topicmodeling_task_count

# ecs tasks max and min
topicmodel_scaling_max_capacity = var.topicmodel_scaling_max_capacity
topicmodel_scaling_min_capacity = var.topicmodel_scaling_min_capacity
}

module "ngrams" {
Expand Down Expand Up @@ -467,6 +471,10 @@ module "summarization_v3" {

# ecs task count
app_count = var.summarization_v3_task_count

# ecs tasks max and min
summarization_v3_scaling_max_capacity = var.summarization_v3_scaling_max_capacity
summarization_v3_scaling_min_capacity = var.summarization_v3_scaling_min_capacity
}

module "cloudmap" {
Expand Down Expand Up @@ -525,6 +533,10 @@ module "deepex" {
# ecs task count
app_count = var.text_extraction_task_count

# ecs tasks max and min
textextraction_scaling_max_capacity = var.textextraction_scaling_max_capacity
textextraction_scaling_min_capacity = var.textextraction_scaling_min_capacity

# efs
efs_volume_id = module.efilesystem.efs_volume_id

Expand Down Expand Up @@ -586,6 +598,10 @@ module "entryextraction" {

# ecs task count
app_count = var.entry_extraction_task_count

# ecs tasks max and min
entryextraction_scaling_max_capacity = var.entryextraction_scaling_max_capacity
entryextraction_scaling_min_capacity = var.entryextraction_scaling_min_capacity
}

module "reliability" {
Expand Down
12 changes: 11 additions & 1 deletion prod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,21 @@ cloudflare_proxy_srv_fargate_memory = "1024"
# ecs tasks count
text_extraction_task_count = 2
entry_extraction_task_count = 2
summarization_v3_task_count = 2
summarization_v3_task_count = 1
geolocations_task_count = 1
topicmodeling_task_count = 2
cloudflare_proxy_srv_task_count = 1

# ecs tasks max and min
textextraction_scaling_max_capacity = 5
textextraction_scaling_min_capacity = 2
topicmodel_scaling_max_capacity = 5
topicmodel_scaling_min_capacity = 2
entryextraction_scaling_max_capacity = 5
entryextraction_scaling_min_capacity = 2
summarization_v3_scaling_max_capacity = 5
summarization_v3_scaling_min_capacity = 1

# model info
classification_model_id = "classification_model"
classification_model_version = "1.0.0"
Expand Down
10 changes: 10 additions & 0 deletions staging.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ geolocations_task_count = 1
topicmodeling_task_count = 1
cloudflare_proxy_srv_task_count = 1

# ecs tasks max and min
textextraction_scaling_max_capacity = 5
textextraction_scaling_min_capacity = 1
topicmodel_scaling_max_capacity = 5
topicmodel_scaling_min_capacity = 1
entryextraction_scaling_max_capacity = 5
entryextraction_scaling_min_capacity = 1
summarization_v3_scaling_max_capacity = 5
summarization_v3_scaling_min_capacity = 1

# model info
classification_model_id = "classification_model"
classification_model_version = "1.0.0"
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,13 @@ variable "summarization_v3_task_count" {}
variable "geolocations_task_count" {}
variable "topicmodeling_task_count" {}
variable "cloudflare_proxy_srv_task_count" {}

# ecs task max and min
variable "textextraction_scaling_max_capacity" {}
variable "textextraction_scaling_min_capacity" {}
variable "topicmodel_scaling_max_capacity" {}
variable "topicmodel_scaling_min_capacity" {}
variable "entryextraction_scaling_max_capacity" {}
variable "entryextraction_scaling_min_capacity" {}
variable "summarization_v3_scaling_max_capacity" {}
variable "summarization_v3_scaling_min_capacity" {}

0 comments on commit 7219e8c

Please sign in to comment.