diff --git a/docs/full-stack-setup-design.md b/docs/full-stack-setup-design.md index 23badc1..2e467b4 100644 --- a/docs/full-stack-setup-design.md +++ b/docs/full-stack-setup-design.md @@ -129,7 +129,7 @@ Each component's PVC, Service, Ingress, and Deployment all share **one name**: | Component | Port | Public URL | Mount | Storage | Notes | | --- | --- | --- | --- | --- | --- | | VTA | 8100 | `vta-{vta_name}.{domain}` | `/work/vta` | PVC 200Mi + **Vault** seed | reuses `vta_only`'s VTA resources + Vault path | -| Mediator | 7037 | `mediator-{vta_name}.{domain}` | `/work/mediator` | PVC 1Gi + **Vault** (`vault://`, kubernetes auth) | config + `fjall` message store on the PVC; no Redis/Valkey | +| Mediator | 7037 | `mediator-{vta_name}.{domain}` | `/work/mediator` | PVC 200Mi + **Vault** (`vault://`, kubernetes auth) | config + `fjall` message store on the PVC; no Redis/Valkey | | DID Hosting daemon | 8534 | `dids-{vta_name}.{domain}` | `/work/dids` | PVC 200Mi + **Vault** (kubernetes auth) | standard (integrated) topology | | VTC | 8200 | `vtc-{vtc_name}.{domain}` | `/work/vtc` | PVC 200Mi + **Vault** (kubernetes auth) | `Command`/`workingDir` set by the farm, same as the other three | diff --git a/internal/capacity/capacity.go b/internal/capacity/capacity.go index 6afc9a9..f7180ca 100644 --- a/internal/capacity/capacity.go +++ b/internal/capacity/capacity.go @@ -48,7 +48,7 @@ var ( // so there is no lighter full-stack shape to plan for. FullStack = Mode{Name: "full_stack", Components: []Component{ planningComponent(k8s.ComponentDids, 200*mi), - planningComponent(k8s.ComponentMediator, gi), + planningComponent(k8s.ComponentMediator, 200*mi), planningComponent(k8s.ComponentVTA, 200*mi), planningComponent(k8s.ComponentVTC, 200*mi), }} diff --git a/internal/capacity/capacity_test.go b/internal/capacity/capacity_test.go index 55a960e..a62b82d 100644 --- a/internal/capacity/capacity_test.go +++ b/internal/capacity/capacity_test.go @@ -99,13 +99,13 @@ func TestEstimateModePerResourceMatchesCount(t *testing.T) { func TestEstimateModeStorageBound(t *testing.T) { nodes := []NodeFree{{CPUMillis: 10000, MemBytes: 100 * gi}} - // Each full_stack session requests 1Gi + 3*200Mi = 1624Mi, so 9Gi fits - // five whole sessions but not six. + // Each full_stack session requests 4*200Mi = 800Mi, so 9Gi fits eleven + // whole sessions but not twelve. disks := []DiskFree{{Bytes: 9 * gi}} est := EstimateMode(FullStack, nodes, disks, 1, true) - if est.Count != 5 { - t.Fatalf("Count = %d, want 5", est.Count) + if est.Count != 11 { + t.Fatalf("Count = %d, want 11", est.Count) } if est.LimitingResource != "storage" { t.Fatalf("LimitingResource = %q, want storage", est.LimitingResource) @@ -161,7 +161,7 @@ func TestReserveModeChargesReservedResourceFootprint(t *testing.T) { } est := EstimateMode(FullStack, reservedNodes, reservedDisks, 1, true) - if est.Count != 1 || est.ByCPU != 6 || est.ByMemory != 1 || est.ByStorage != 19 { + if est.Count != 1 || est.ByCPU != 6 || est.ByMemory != 1 || est.ByStorage != 39 { t.Fatalf("full-stack estimate after VTA reservations = %+v", est) } if est.LimitingResource != "memory" { diff --git a/internal/handler/dashboard_usage_test.go b/internal/handler/dashboard_usage_test.go index 2373371..0171f5d 100644 --- a/internal/handler/dashboard_usage_test.go +++ b/internal/handler/dashboard_usage_test.go @@ -156,7 +156,7 @@ func TestCapacityEstimatesReservePoolVTAResourcesForEveryMode(t *testing.T) { t.Fatalf("VTA-only estimate = %+v", vtaOnly) } fullStack := estimates["full_stack"] - if fullStack.Count != 1 || fullStack.ByCPU != 6 || fullStack.ByMemory != 1 || fullStack.ByStorage != 19 { + if fullStack.Count != 1 || fullStack.ByCPU != 6 || fullStack.ByMemory != 1 || fullStack.ByStorage != 39 { t.Fatalf("full-stack estimate = %+v", fullStack) } if fullStack.LimitingResource != "memory" { diff --git a/internal/k8s/pvc_sizes.go b/internal/k8s/pvc_sizes.go index 3638633..60abc35 100644 --- a/internal/k8s/pvc_sizes.go +++ b/internal/k8s/pvc_sizes.go @@ -5,6 +5,6 @@ package k8s const ( VtaPVCStorageSize = "200Mi" DIDHostingPVCStorageSize = "200Mi" - MediatorPVCStorageSize = "1Gi" + MediatorPVCStorageSize = "200Mi" VtcPVCStorageSize = "200Mi" )