Skip to main content

Fleet API

A GPU box's lease API: decree-go-rest, pulled as an image, in front of the box's own decree project (the checkout's .decree). Another host's fleet lib asks it for the card (POST /gpu/<mode>/<client>), and the box's lease_gpu, in its host daemon, carries the lease out. It runs no work itself and can write nothing but .decree/inbox/.

Only a GPU box runs it, and a GPU box is host-wired by choice: lease_gpu starts and stops the box's GPU processes, so it needs the host daemon. The controller never runs it; its API is the model gateway.

Turn it on​

On the GPU box:

./existential.sh run fleet api

That turns the service on (EXIST_IS_HOSTING_FLEET_API=true), writes its config once (.decree/decree-go-rest.yml, the box's own, to which each host plugin adds its endpoints) and starts it. It is restart: unless-stopped, so it comes back with the container engine after a reboot.

After a new fleet secret (./existential.sh run fleet join), it is recreated so it takes it.

Check it​

./existential.sh test fleet-api # /healthz, and a lease without the secret refused
docker logs fleet-api

Telemetry: none; it sends nothing anywhere.