* Boxes edit on light copies; the farm renders from originals it fetches from the library itself
A farm render now reads each light copy as its full-size original, resolved as it's sent (server/originals.ts):
by its link in .raea-cloud/originals.json, which the farm fetches from the library, checks by hash and keeps in
its cache; else by the original's file under footage/originals/, sent by its own hash. Nothing on the box ever
takes a light copy's place, and the box never downloads, hashes or sends a 4K original.
A light copy with neither is rendered as itself, printed as NO ORIGINAL, and recorded in the render's manifest
(originals.read / originals.light), so raea cloud never shows what was made from it.
footage/originals/ and the kept light copies (.raea-cloud/proxies/) no longer go in a render's tar: run 24's
Dutch box packed 179 MB of kept light copies into every render.
The farm takes an original of unknown size (0) when it comes with its link, checked by hash alone.
docs/cloud.feature CL17-CL20; test/originals.ts, test/farm_media.py.
* The farm's media list keeps each original by its link on every path; every render records what it read
Review of #340: on the default path (a farm with a media cache) offload set the list to what went into the cache
and dropped the originals' links, so the farm would have rendered the 540p light copies while the manifest said the
originals were read. The list is now decided once, after every path (withOriginals), and what a farm can't take
(an original by its file without the cache, one of unknown size on an older farm) is recorded light (settle).
The record goes into the manifest for every render, checked or not, and beside a still that has none. footage/
originals/ is no longer excluded outright: an original no source names already stays, and one a composition names
still goes. The by-name fallback matches only a light copy straight in footage/. An original of unknown size is
refused past 40 GB as it downloads.
* Originals by link: the farm says what it takes; a render's record holds only what it read
Second review of #340. /v1/blobs/have answers links: 1 when the farm fetches an original of unknown size, and settle
goes by that, not by the farm having a cache. The record goes into the --manifest and beside the output, narrowed to
the sources the manifest names; a clean render clears an old one; one that can't be written is said aloud. A CPU
render (no farm, or RAEA_CLOUD_GPU_FALLBACK=cpu) records every light copy as light and says NO ORIGINAL.
footage/originals/ stays out even when no source names any media. Farm temp files get a random suffix (PIDs repeat
across containers), and the size line counts what's fetched by link apart.
---------
Co-authored-by: shinyobjectz <[email protected]>
* raea cloud's boxes as Fly Machines, and a 2D render's runs out at once with stragglers sent again
Boxes: deploy/fly (image, start, box.sh up/move/latest), the server stops itself when idle (idle.ts), a file PUT
streams to disk, the client sends a Sprite's token only to a Sprite (CL16).
Farm: a video with no 3D goes out at once on up to the job's containers (no timed first run), a run hanging back is
sent again and the first answer kept, and containers with no GPU stay warm 180 s.
* The public guard passes raea cloud's box users' folders (/home/sprite, /home/raea); the Fly box scripts are executable
* A goal's says rules judged at once: up to 6 cuts heard by Clef together, and the critic reads while they're heard
One raea ask after another, a project's beats took 6-17 minutes of every goal check (12-03, StreetTalk).
* A box takes a request as long as its body takes (Node's 5 minutes cut a home's upload at 408); box.sh move stops when the home didn't arrive whole
* A box's files route in its own module, streamed both ways; box.sh move says what has arrived every 15 s and stops a copy that stops growing for 2 minutes
main.ts was 520 lines (tools/size.sh). Shane 12-03: fail fast at every step.
* farm: each step after the draw says how long it took when it took a second or more
A render whose every frame was kept took 64 s between "nothing to draw" and "joined" (12-03), and nothing said where.
* An agent socket whose caller answers no ping in 3 minutes is ended, and its agent with it; box.sh restarts a box only for a new image, and its copy reconnects to the Sprite
12-03: a stopped StreetTalk project's Gemini, busy so never idle, went on an hour running goal checks on raea-5: its caller
(the API, restarted) had gone with the box's half of the socket open. A Machine restarted by box.sh up after its health
check passed cut three homes' uploads off; and sprite exec lost all four copies' sessions at once, 6 minutes in, without
reconnecting while stdin was attached (--no-stdin).
---------
Co-authored-by: shinyobjectz <[email protected]>
- The image is Node 24 on Debian trixie with glvnd and X11's libraries (libxext6 libx11-6 libgl1 libegl1), without
which NVIDIA's Vulkan driver (mounted by the container runtime) doesn't load or gives no vkCreateInstance (driver
610.57 on Modal's T4, A10G and A10). The entrypoint opens NVIDIA's driver when the host passed a GPU in, else Mesa's;
WGPU_BACKEND=vulkan, and on the CPU EGL's vendors are hidden, since NVIDIA's EGL would hand wgpu an OpenGL adapter
over llvmpipe. RAEA_CLOUD_DEVICE=gpu fails at start on no GPU; /v1/health says the device.
- /v1/jobs takes a project as a tar and gives back what the render made (CL14); deploy/modal/raea_cloud.py runs it on
a Modal GPU list (L4, else A10G, else T4), one container that sleeps after five idle minutes.
- RAEA_CLOUD_GPU_URL on a CPU box sends raea render to the worker and lands its files back (CL15, image/raea.sh and
server/offload.ts); deploy/k8s.gpu.yaml is such a worker.
- test/smoke.sh: worker and box, ten checks, all pass on 0.1.1-rc3. On Modal, test/gpu/edit.tsx (576 lit blocks,
1080p, 90 frames): T4 156 s against llvmpipe on the same machine's 8 cores 203 s; a box on a Mac handed it to an A10
(119 s) and the MP4 came back.