Skip to content

Commit

Permalink
fix: define resource limits on api frontend & update espv2 version (#…
Browse files Browse the repository at this point in the history
…3043)

The memory of the API 'frontend' (the ESPv2) was bumped to 2GB manually.
Adjusted the terraform configs to do this.
Also updated the ESPv2 base image to the latest version.
  • Loading branch information
michaelkedar authored Jan 7, 2025
1 parent d200bc6 commit 732f083
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/terraform/environments/oss-vdb-test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module "osv_test" {

website_domain = "test.osv.dev"
api_url = "api.test.osv.dev"
esp_version = "2.49.0"
esp_version = "2.51.0"
}

import {
Expand Down
2 changes: 1 addition & 1 deletion deployment/terraform/environments/oss-vdb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module "osv" {

website_domain = "osv.dev"
api_url = "api.osv.dev"
esp_version = "2.49.0"
esp_version = "2.51.0"
}

import {
Expand Down
6 changes: 6 additions & 0 deletions deployment/terraform/modules/osv/osv_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ resource "google_cloud_run_service" "api" {
name = "ESPv2_ARGS"
value = "^++^--transcoding_preserve_proto_field_names++--envoy_connection_buffer_limit_bytes=104857600"
}
resources {
limits = {
"cpu" = "1000m"
"memory" = "2Gi"
}
}
}
}
}
Expand Down

0 comments on commit 732f083

Please sign in to comment.