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
2 changes: 1 addition & 1 deletion docs/full-stack-setup-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down
2 changes: 1 addition & 1 deletion internal/capacity/capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}}
Expand Down
10 changes: 5 additions & 5 deletions internal/capacity/capacity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion internal/handler/dashboard_usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion internal/k8s/pvc_sizes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package k8s
const (
VtaPVCStorageSize = "200Mi"
DIDHostingPVCStorageSize = "200Mi"
MediatorPVCStorageSize = "1Gi"
MediatorPVCStorageSize = "200Mi"
VtcPVCStorageSize = "200Mi"
)