Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ND-624: up task size to combat 100% CPU #367

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/dns/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ resource "aws_ecs_cluster" "server_cluster" {
}

resource "aws_ecs_service" "service" {
name = "${var.prefix}-service"
cluster = aws_ecs_cluster.server_cluster.id
task_definition = aws_ecs_task_definition.server_task.arn
desired_count = 5
launch_type = "FARGATE"
tags = var.tags
name = "${var.prefix}-service"
cluster = aws_ecs_cluster.server_cluster.id
task_definition = aws_ecs_task_definition.server_task.arn
desired_count = 5
launch_type = "FARGATE"
tags = var.tags
enable_execute_command = true

lifecycle {
Expand Down
2 changes: 1 addition & 1 deletion modules/dns/ecs_task_definition.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_ecs_task_definition" "server_task" {
task_role_arn = module.dns_dhcp_common.iam.ecs_task_role_arn
execution_role_arn = module.dns_dhcp_common.iam.ecs_execution_role_arn
requires_compatibilities = ["FARGATE"]
cpu = "512"
cpu = "1024"
memory = "1024"
network_mode = "awsvpc"

Expand Down