From 2bdfd3096d1f14f5b29fcc409ee016a788218267 Mon Sep 17 00:00:00 2001 From: "@permadeath.com" Date: Tue, 11 Aug 2026 13:03:04 -0400 Subject: [PATCH] docs(tf): correct task_memory description and init_command output modules/match-cluster/variables.tf still said the Suramadu server and client JVM had never been measured together; envs/lance.blue/variables.tf and docs/architecture.md now record a 3.2GB peak, and terraform.tfvars sets match_task_memory to 8192. Only the description changes, not the default. envs/bootstrap/outputs.tf's init_command described a partial-backend init this repo does not use. backend.tf writes the bucket and region out in full, so plain 'tofu -chdir=envs/lance.blue init' is the real command, matching docs/runbook.md step 4. --- envs/bootstrap/outputs.tf | 4 ++-- modules/match-cluster/variables.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/envs/bootstrap/outputs.tf b/envs/bootstrap/outputs.tf index 6d30484..c7a771d 100644 --- a/envs/bootstrap/outputs.tf +++ b/envs/bootstrap/outputs.tf @@ -4,8 +4,8 @@ output "state_bucket" { } output "init_command" { - description = "Ready-made init for the environment, since a backend block cannot take variables." - value = "tofu -chdir=envs/lance.blue init -backend-config=\"bucket=${aws_s3_bucket.state.id}\" -backend-config=\"region=${var.region}\"" + description = "Ready-made init for the environment. envs/lance.blue/backend.tf writes the bucket and region out in full, since a backend block cannot take variables, so this needs no -backend-config flags." + value = "tofu -chdir=envs/lance.blue init" } output "apply_role_arn" { diff --git a/modules/match-cluster/variables.tf b/modules/match-cluster/variables.tf index 649b85e..9cd1800 100644 --- a/modules/match-cluster/variables.tf +++ b/modules/match-cluster/variables.tf @@ -40,7 +40,7 @@ variable "task_cpu" { } variable "task_memory" { - description = "Fargate memory in MiB. Must be a combination Fargate allows for the chosen CPU. The spike measured ~730MB RSS per match, but that was the headless server and bots - the Suramadu server and the client JVM are on top of it and have never been measured together, so 2048 is a guess." + description = "Fargate memory in MiB. Must be a combination Fargate allows for the chosen CPU. The spike measured ~730MB RSS per match, but that was only the headless server and bots. Suramadu's server and the client JVM have since been measured together: a full match peaked at 3.2GB (see envs/lance.blue/variables.tf's match_task_memory and docs/architecture.md), and lance.blue's env now sets 8192 to clear arena's heap ceilings. 2048 remains this module's generic default." type = number default = 2048 } -- 2.51.2