Skip to content

Commit 1bb0848

Browse files
committed
fix: api 컨테이너 vcpu 제한 상향
1 parent 54a205e commit 1bb0848

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

terraform/dev/terraform.tfvars

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ ecs_services = {
2020

2121
ecs_task_definitions_base = {
2222
api-dev = {
23-
cpu = 256
24-
memory = 1024
25-
network_mode = "host"
23+
cpu = 1500
24+
memory = 1024
25+
network_mode = "host"
2626
requires_compatibilities = ["EC2"]
2727

2828
port_mappings = [
@@ -45,12 +45,12 @@ ecs_task_definitions_base = {
4545
}
4646

4747
mysql-dev = {
48-
cpu = 256
49-
memoryReservation = 128
50-
memory = 512
51-
network_mode = "host"
48+
cpu = 256
49+
memoryReservation = 128
50+
memory = 512
51+
network_mode = "host"
5252
requires_compatibilities = ["EC2"]
53-
container_image = "mysql:8"
53+
container_image = "mysql:8"
5454

5555
port_mappings = [
5656
{
@@ -88,11 +88,11 @@ ecs_task_definitions_base = {
8888
}
8989

9090
"datadog-agent-task" = {
91-
cpu = 256
92-
memory = 256
93-
network_mode = "host"
91+
cpu = 256
92+
memory = 256
93+
network_mode = "host"
9494
requires_compatibilities = ["EC2"]
95-
container_image = "public.ecr.aws/datadog/agent:latest"
95+
container_image = "public.ecr.aws/datadog/agent:latest"
9696

9797
port_mappings = [
9898
{

terraform/prod/terraform.tfvars

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ ecs_services = {
1717

1818
ecs_task_definitions_base = {
1919
api-prod = {
20-
cpu = 256
21-
memory = 1024
22-
network_mode = "host"
20+
cpu = 1500
21+
memory = 1024
22+
network_mode = "host"
2323
container_port = [8080]
24-
host_port = [0]
25-
log_group = "/ecs/eatda-api"
26-
environment = {}
24+
host_port = [0]
25+
log_group = "/ecs/eatda-api"
26+
environment = {}
2727
volumes = [
2828
{
29-
name = "prod-api-volume"
30-
host_path = "/home/ec2-user/logs/"
29+
name = "prod-api-volume"
30+
host_path = "/home/ec2-user/logs/"
3131
}
3232
]
3333
}
3434

3535
datadog = {
36-
container_image = "public.ecr.aws/datadog/agent:latest"
37-
cpu = 256
38-
memoryReservation = 256
39-
memory = 512
40-
network_mode = "host"
41-
container_port = [8125, 8126]
42-
host_port = [8125, 8126]
36+
container_image = "public.ecr.aws/datadog/agent:latest"
37+
cpu = 256
38+
memoryReservation = 256
39+
memory = 512
40+
network_mode = "host"
41+
container_port = [8125, 8126]
42+
host_port = [8125, 8126]
4343
requires_compatibilities = ["EC2"]
4444
environment = {
4545
DD_SITE = "datadoghq.com"

0 commit comments

Comments
 (0)