Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deployment/modules/gcp/cloudrun/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ resource "google_cloud_run_v2_service" "default" {
"--inmemory_antispam_cache_size=25000000", # About 1GB of memory.
"--not_after_start=${var.not_after_start}",
"--not_after_limit=${var.not_after_limit}",
"--trace_fraction=${var.trace_fraction}"
"--trace_fraction=${var.trace_fraction}",
"--batch_max_size=${var.batch_max_size}",
"--batch_max_age=${var.batch_max_age}",
]
ports {
container_port = 6962
Expand Down
10 changes: 10 additions & 0 deletions deployment/modules/gcp/cloudrun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,13 @@ variable "trace_fraction" {
description = "Fraction of open-telemetry span traces to sample."
type = number
}

variable "batch_max_size" {
description = "Maximum number of entries to process in a single sequencing batch."
type = number
}

variable "batch_max_age" {
description = "Maximum age of entries in a single sequencing batch."
type = string
}
2 changes: 2 additions & 0 deletions deployment/modules/gcp/tesseract/cloudrun/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ module "cloudrun" {
signer_public_key_secret_name = module.secretmanager.ecdsa_p256_public_key_id
signer_private_key_secret_name = module.secretmanager.ecdsa_p256_private_key_id
trace_fraction = var.trace_fraction
batch_max_age = var.batch_max_age
batch_max_size = var.batch_max_size

depends_on = [
module.secretmanager,
Expand Down
12 changes: 12 additions & 0 deletions deployment/modules/gcp/tesseract/cloudrun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ variable "spanner_pu" {
default = 100
}

variable "batch_max_size" {
description = "Maximum number of entries to process in a single sequencing batch."
type = number
default = 1024
}

variable "batch_max_age" {
description = "Maximum age of entries in a single sequencing batch."
type = string
default = "500ms"
}

variable "ephemeral" {
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."
default = false
Expand Down
Loading