From 3c57942c7aad340f0783ce68914dd3f0b5293064 Mon Sep 17 00:00:00 2001 From: Philippe Boneff Date: Thu, 5 Jun 2025 16:44:13 +0000 Subject: [PATCH] update sequencing parameters # Conflicts: # go.mod # go.sum # Conflicts: # go.mod # go.sum --- deployment/modules/gcp/cloudrun/main.tf | 4 +++- deployment/modules/gcp/cloudrun/variables.tf | 10 ++++++++++ deployment/modules/gcp/tesseract/cloudrun/main.tf | 2 ++ .../modules/gcp/tesseract/cloudrun/variables.tf | 12 ++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/deployment/modules/gcp/cloudrun/main.tf b/deployment/modules/gcp/cloudrun/main.tf index f861786bc..ce21b27f3 100644 --- a/deployment/modules/gcp/cloudrun/main.tf +++ b/deployment/modules/gcp/cloudrun/main.tf @@ -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 diff --git a/deployment/modules/gcp/cloudrun/variables.tf b/deployment/modules/gcp/cloudrun/variables.tf index afd27dc27..245c899ab 100644 --- a/deployment/modules/gcp/cloudrun/variables.tf +++ b/deployment/modules/gcp/cloudrun/variables.tf @@ -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 +} diff --git a/deployment/modules/gcp/tesseract/cloudrun/main.tf b/deployment/modules/gcp/tesseract/cloudrun/main.tf index 59aa1a1f1..6721886f9 100644 --- a/deployment/modules/gcp/tesseract/cloudrun/main.tf +++ b/deployment/modules/gcp/tesseract/cloudrun/main.tf @@ -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, diff --git a/deployment/modules/gcp/tesseract/cloudrun/variables.tf b/deployment/modules/gcp/tesseract/cloudrun/variables.tf index a0609f4a5..b2284918c 100644 --- a/deployment/modules/gcp/tesseract/cloudrun/variables.tf +++ b/deployment/modules/gcp/tesseract/cloudrun/variables.tf @@ -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