Skip to content

Commit d9484a6

Browse files
authored
Reshape resources (#287)
* run more tesseract servers, and double size of containers * add more pu # Conflicts: # deployment/modules/gcp/tesseract/conformance/main.tf # deployment/modules/gcp/tesseract/conformance/variables.tf
1 parent 5678283 commit d9484a6

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

deployment/live/gcp/static-ct-staging/logs/arche2025h1/terragrunt.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ locals {
88
base_name = include.root.locals.base_name
99
origin_suffix = include.root.locals.origin_suffix
1010
server_docker_image = "${include.root.locals.location}-docker.pkg.dev/${include.root.locals.project_id}/docker-${local.env}/conformance-gcp:${include.root.locals.docker_container_tag}"
11+
spanner_pu = 500
1112
}
1213

1314
include "root" {

deployment/modules/gcp/cloudrun/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ resource "google_cloud_run_v2_service" "default" {
3232

3333
scaling {
3434
max_instance_count = 3
35+
min_instance_count = 1
3536
}
3637

3738
containers {
@@ -55,8 +56,8 @@ resource "google_cloud_run_v2_service" "default" {
5556

5657
resources {
5758
limits = {
58-
cpu = "2000m"
59-
memory = "1Gi"
59+
cpu = "4000m"
60+
memory = "2Gi"
6061
}
6162
}
6263

deployment/modules/gcp/storage/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ resource "google_spanner_instance" "log_spanner" {
4545
name = var.base_name
4646
config = "regional-${var.location}"
4747
display_name = var.base_name
48-
processing_units = 100
48+
processing_units = var.spanner_pu
4949
default_backup_schedule_type = "NONE"
5050

5151
force_destroy = var.ephemeral

deployment/modules/gcp/storage/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ variable "ephemeral" {
1717
description = "Set to true if this is a throwaway/temporary log instance. Will set attributes on created resources to allow them to be disabled/deleted more easily."
1818
type = bool
1919
}
20+
21+
variable "spanner_pu" {
22+
description = "Amount of Spanner processing units"
23+
type = number
24+
default = 100
25+
}

deployment/modules/gcp/tesseract/conformance/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module "storage" {
99
base_name = var.base_name
1010
location = var.location
1111
ephemeral = var.ephemeral
12+
spanner_pu = var.spanner_pu
1213
}
1314

1415
module "secretmanager" {

deployment/modules/gcp/tesseract/conformance/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ variable "server_docker_image" {
3333
type = string
3434
}
3535

36+
variable "spanner_pu" {
37+
description = "Amount of Spanner processing units"
38+
type = number
39+
default = 100
40+
}
41+
3642
variable "ephemeral" {
3743
description = "Set to true if this is a throwaway/temporary log instance. Will set attributes on created resources to allow them to be disabled/deleted more easily."
3844
default = false

0 commit comments

Comments
 (0)