### GATE CAPTURE: Fork-1 (a) 10th controller VM -- whole-host RAM budget
### Date 2026-07-24. Controller modeled as +8 GiB / +4 vCPU per-DC containment overhead
### (Model B: the juju controller VM is a peer of the node VMs inside each vvr1-dcN).

===== BASELINE: built layout 3+2+4, 2 DCs (defaults) =====
=== dc-dc-whole-host-budget: VR1 nested capacity (D-121 / R-3 / Model B) ===
  Per-DC node fleet: 104 vCPU / 384 GiB / 2850 GiB
  Model B: each containment VM (vvr1-dcN) holds one DC's fleet -> ~400 GiB RAM each
    + containment overhead 2 x (4 vCPU / 16 GiB)
  Office1 voffice1: 16/32/600; edges: 3 x (2 vCPU / 2 GiB)

  TOTAL allocation : 238 vCPU / 838 GiB / 6300 GiB
  MEASURED host    : 256 vCPU / 1024 GiB / 10240 GiB
  RAM   : 838/1024 GiB = 82%   <- BINDING resource
  vCPU  : 238/256 = 93%   (overcommits in a sim; not a hard ceiling)
  disk  : 6300/10240 GiB = 62%   (thin-provisioned)

VERDICT: FIT -- RAM within budget (186 GiB headroom).
WHOLE-HOST: model=B ram=838/1024GiB verdict=FIT headroom=186GiB vcpu=238/256 disk=6300/10240GiB
(exit 0)

===== +CONTROLLER: +8 GiB/+4 vCPU per-DC containment overhead (x2 DCs) =====
=== dc-dc-whole-host-budget: VR1 nested capacity (D-121 / R-3 / Model B) ===
  Per-DC node fleet: 104 vCPU / 384 GiB / 2850 GiB
  Model B: each containment VM (vvr1-dcN) holds one DC's fleet -> ~408 GiB RAM each
    + containment overhead 2 x (8 vCPU / 24 GiB)
  Office1 voffice1: 16/32/600; edges: 3 x (2 vCPU / 2 GiB)

  TOTAL allocation : 246 vCPU / 854 GiB / 6300 GiB
  MEASURED host    : 256 vCPU / 1024 GiB / 10240 GiB
  RAM   : 854/1024 GiB = 83%   <- BINDING resource
  vCPU  : 246/256 = 96%   (overcommits in a sim; not a hard ceiling)
  disk  : 6300/10240 GiB = 62%   (thin-provisioned)

VERDICT: FIT -- RAM within budget (170 GiB headroom).
WHOLE-HOST: model=B ram=854/1024GiB verdict=FIT headroom=170GiB vcpu=246/256 disk=6300/10240GiB
(exit 0)
