Skip to content

Commit 37183b8

Browse files
authored
Changed memory to 4GB and max instances to 50 for the feed api (#1402)
1 parent 22f2c3a commit 37183b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

infra/feed-api/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ resource "google_cloud_run_v2_service" "mobility-feed-api" {
6969
location = var.gcp_region
7070
ingress = "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"
7171

72+
scaling {
73+
max_instance_count = 50
74+
}
75+
7276
template {
7377
service_account = google_service_account.containers_service_account.email
7478
vpc_access {
@@ -93,7 +97,7 @@ resource "google_cloud_run_v2_service" "mobility-feed-api" {
9397
resources {
9498
limits = {
9599
cpu = "1"
96-
memory = "2Gi"
100+
memory = "4Gi"
97101
}
98102
}
99103
}

0 commit comments

Comments
 (0)