Skip to content

How it works, in full

The lifecycle of a GPU rental

A renter types one command in the CLI and gets a shell on someone else's graphics card. In between sit a placement decision, an agent that only calls out, a relay hop and a meter.

01The request

A rental states what it needs, never where to go

The renter names a GPU model and a region, and says what they will pay. Choosing the machine is the control plane's job, and a request that named one would break the moment that machine went offline.

Both names come from a catalogue rather than free text. and a fixed list of GPU models, each keyed by code, so 7900xtx either resolves to a row or the request is rejected before it reaches placement. A typed-in model name would match nothing forever and fail as “no capacity”.

The rest of this page walks the same path the transcript above took, one step at a time. For the short version, the knowledge base answers the same questions one at a time.

requestedmatchedstartingrunningstoppingended
instances.state · one-way, left to right

02The fleet

Seven parts, and what each one is responsible for

Two runtimes over one database. Select any cluster, or any part standing on one, and the links it actually uses light up while everything more than one hop away recedes.

03Three shapes

The same fleet, carved three ways

One pool of hardware can answer three shapes of demand. Cloud GPU is live; Clusters and Serverless are planned. The difference is how much of a machine a rental holds and for how long. Only the carving changes.

04Placement

Scored, not queued

Every request is scored against every node that could serve it, and the winner is decided by a unique index in Postgres rather than by whichever process asked first.

05The handshake

One token, checked on every call

The node agent has no inbound port. It calls out over TLS with a bearer token issued when its host was created, the control plane checks that token's hash on every call, and commands come back in the reply.

06The plan

Three states, and each adds a fact

The rental is rewritten twice before anything boots. You cannot scope a card before you know which machine, and you cannot freeze a price before you know whose.

07Isolation

One card, and the edges around it

A rental holds the whole machine, but only the cards it asked for are scoped into its container, on a box that is still somebody's. So the interesting question is not how the container is built but where its edges are. Everything below was checked by opening it.

provider hostprovider sshd:22session172.30.0.x · renderD128internethub10.93.0.0/16LAN10.0.0.0/8
routes from the session · the crosses are where iptables drops the packet

08Failure

When a node stops answering

Provider hardware is somebody's spare machine on a home connection, so the interesting case is the one where it disappears mid-rental. Powered on is not the signal. The heartbeat is.

09Durability

A workspace that outlives its rental

A snapshot is an archive of /workspace, taken as the rental stops and kept in Kracht's storage rather than on the provider's disk. A restore is an ordinary launch: placement puts it on whatever machine fits, which may be the same one.

10The meter

Per second, and never a float

Billing is per second, posted every 15-second heartbeat, and that is what makes the arithmetic dangerous: a week-long rental multiplies a rounding error by forty thousand ticks. The columns are numeric(16,6), the values arrive as strings, and they stay strings until they become a Decimal.

11Settlement

Every tick split, and it has to add back

Each heartbeat's charge is split as it is posted, not the total at the end. The take rate is 15%, the arithmetic is on whole microdollars, and each tick's two halves are required to reconstruct it.

ledger_entriessampleusd
charge-0.026667ik_7f3a91c2
provider_share+0.022667ik_7f3a91c2
charge-0.026667ik_9c114e0b
charge-0.026667ik_b2e07d55
provider_share+0.022667ik_b2e07d55

12Payouts

What a provider will be able to withdraw

Settlement decides what a provider earned. Once payouts launch, what can move to a bank account is the smaller of two numbers, so topped-up credit never leaves as cash. Payouts are coming via Stripe. None has run yet.