HydraIssues

Scaling cloud bodies: a Linux body serves ONE stream, and all media transits one hub
open feature Project: hydrahyperscaler Reporter: cederik 18 Nov 2026 02:58

Description

A cloud body on a GCP L4 is now reproducible: boot a snapshot, run one command,
stream. This issue records what caps a FLEET of them, because the two biggest
limits are not capacity and not the build. Both were measured on 2026-11-15,
not inferred.

What works today

  • Snapshot omarchy-body-ready-v4 in GCP project hydrahyperscaler is a
    clean body: Omarchy, headless Xorg plus NvFBC, Sunshine. No game, no
    account, no agents, no cluster identity.
  • Snapshot omarchy-wow-20261114 is the same plus WoW: Forever and a
    logged-in Battle.net.
  • hydrabody/scripts/omarchy-gce/enroll-body.sh does the whole enrolment in
    one command, off box, so the cluster admin token never reaches a render node.
  • Verified end to end: a body booted from v4 enrolled, the cluster assigned
    wireguard_ip 10.10.100.31 via the hydraguard-air role with no hub edit,
    and it streamed hydraunrealtemplate to cranky-toaster-86 for 84 seconds.
    Start and stop both work over HTTP on hydracluster v2.4.1 with head agent
    v2.9.1, and the lane frees on stop.

1. A Linux body serves exactly ONE stream. Highest-leverage gap.

Multiple streaming slots are Windows only. This is not a configuration
oversight, it is an unimplemented platform half. Verbatim, from hydrabody
master:

// pkg/provider/slot_wiring_other.go:8
func (p *Provider) initSlots() {}

// pkg/provider/slots_other.go
func (l *InteractiveSlotLauncher) Launch(spec SlotSpec, exePath, workDir string) (uint32, error) {
    return 0, fmt.Errorf("slot %d: slot launch is not supported on this platform", spec.Index)
}

The file's own comment states the reason and the scope:

// InteractiveSlotLauncher is a stub off Windows. A slot's Sunshine must be
// started by a SYSTEM service attached to the interactive console session,
// which is a Windows construct with no equivalent here. The slot planner,
// config renderer and SlotManager stay portable and are tested on this
// platform; only the launch itself is Windows-only.

Consequence: on Linux, concurrency equals instance count equals GPU count. A
Windows body serves 3 streams per GPU, a Linux cloud body serves 1. That is 3x
the GPUs billed for the same concurrency.

The planner, the config renderer and SlotManager are already portable and
tested on Linux. Only the launch is missing, and on Linux it does not need the
Windows console-session machinery at all: a slot is a separate Xorg display
plus a systemd unit. Work lands in hydrabody, slot_wiring_other.go and
slots_other.go.

2. All stream media transits ONE hub

The hydraguard-air mesh is hub and spoke, not a full mesh. Measured on the
hub:

  • 41 peers, every single one with a /32 in AllowedIPs, none wider.
  • /proc/sys/net/ipv4/ip_forward = 1.

So there is no direct body-to-head path. Every cloud stream goes body to hub
to head through one box.

That box is not loaded today: 4 AMD EPYC Genoa cores, 16 GB RAM, load average
0.06 0.02 0.00, and 1327.5 GiB transmitted through WireGuard across 15 weeks
1 day of uptime. ChaCha20 on 4 Genoa cores is multiple Gbps, so CPU is far
from the limit, on the order of 100 concurrent 1080p streams.

The real exposures are the provider's monthly traffic allowance and the fact
that it is a single box with no redundancy. At roughly 9 GB per stream-hour,
ten all-day streams approaches a 20 TB monthly allowance. Not a blocker now.
Worth knowing before anyone designs around it.

3. The WoW snapshot is not a safe template yet

omarchy-body-ready-v4 was deliberately identity-stripped.
omarchy-wow-20261114 was NOT: it was taken from a live, enrolled body, so it
most likely still carries ~/.hydranode, host SSH keys and Sunshine pairing
certs. Every clone would come up claiming the same cluster node, which was
node-879e0eec and has since been deleted.

Before that snapshot can be cloned more than once it needs the same strip v4
got. Untested: it has not been booted since it was taken.

Separately, the login in it is a stored session token, not a password. It can
expire or be invalidated, and then the only fix is to log in once by hand and
re-snapshot, because Battle.net 2FA cannot be scripted.

4. Per-experience cost, not per-body

Each non-Battle.net experience costs, once: a snapshot carrying the installed
build, and its own library record, because one experience record serves one OS
(see #1188). After that any number of bodies boot it with no extra work. This
is the cheap path.

5. Two quotas bind, and both read as a capacity problem

GPUS_ALL_REGIONS              limit 1
NVIDIA_L4_GPUS                limit 1
PREEMPTIBLE_NVIDIA_L4_GPUS    limit 1
SSD_TOTAL_GB                  limit 500   (counts pd-balanced, NOT pd-standard)

GPU quota is a hard 1, so there is never a second GPU body and never a builder
beside a target. SSD_TOTAL_GB sat at 440/500 on 2026-11-15 because of four
dead 120 GB disks, which made the next body unschedulable while every other
number looked healthy. Check gcloud compute regions describe europe-west1
before blaming stockouts. Real L4 stockouts in -b and -c are also common, and
#695 already ruled that G4 needs a reservation because European capacity is
zero. A quota grant is permission to ask, not supply.

6. The economics already point off GCP

#695 found roughly $238 to $247 per stream-month in hyperscaler egress alone,
with zero-egress providers three to five times cheaper, which is why the
shortlist put OVH GRA11 and LeaderGPU ahead of GCP. GCP was the right place to
prove the Omarchy body works. It is the wrong place to run twenty of them.

7. Architectural tension worth a ruling

#867 ruled "control central, data local, never route venue media via cloud". A
cloud body routes media via cloud by definition. That is consistent with #695,
which is about flat streams to remote heads. It is NOT consistent with using
cloud bodies as general venue capacity. Someone should state which of the two
this programme is.

Proposed work, in order of leverage

  1. hydrabody: implement the Linux slot launcher. Separate Xorg display plus
    a systemd unit per slot. Removes the 3x GPU penalty. The planner and config
    renderer are already done and tested.
  2. hydrahyperscaler: identity-strip and re-snapshot the WoW image, then
    boot it once to verify, which has never been done.
  3. Decide the #867 question before building fleet tooling.
  4. Do not scale this on GCP without revisiting the #695 egress numbers.

What is NOT the problem

Do not chase the Sunshine capture backend or the network when a cloud stream
misbehaves. The display stack is settled: Xorg plus NvFBC, because an L4 has
no display engine and Hyprland cannot render there. The two black-screen causes
and how to tell them apart are in hydrabody/docs/runbooks/runbook.md under
"Omarchy cloud bodies (GPU with no display connector)".

Session Context

Venue
mobile-kit
District
bxl1-test-2
Head
cranky-toaster-86