Skip to content

Commit

Permalink
Merge pull request #52 from NandosUK/run-boost
Browse files Browse the repository at this point in the history
CPU limits
  • Loading branch information
miguelpuiggarcia authored Jan 31, 2024
2 parents 480b73f + ec1e84e commit 9d08596
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcp/cloud-run-v2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ resource "google_cloud_run_v2_service" "default" {
cpu = var.cpu_limit
memory = var.memory_limit
}
cpu_idle = var.cpu_idle
startup_cpu_boost = var.startup_cpu_boost
}

# Conditional volume_mounts
Expand Down
12 changes: 12 additions & 0 deletions gcp/cloud-run-v2/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,15 @@ variable "enable_custom_domain" {
type = bool
default = true
}

variable "startup_cpu_boost" {
description = "CPU boost for the Cloud Run container"
type = bool
default = true
}

variable "cpu_idle" {
description = "CPU idle for the Cloud Run container"
type = bool
default = true
}
1 change: 1 addition & 0 deletions test/gcp/.terraform.tfstate.lock.info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ID":"79a634f7-ef80-19b2-3e35-91eb38257f2f","Operation":"OperationTypePlan","Info":"","Who":"[email protected]","Version":"1.6.6","Created":"2024-01-31T18:29:07.960201Z","Path":"terraform.tfstate"}

0 comments on commit 9d08596

Please sign in to comment.