- 5states; every piece of work is in exactly one
- 1durable tombstone marks a completion
- 4outcomes for every item at reconciliation
- 6 Mqueued items in the loss this design closed
Methods and Systems for No-Loss Work Reconciliation Between a Durable-Log Broker and Accelerator Inference Runtimes Using Consumer-Reported Hardware Residency. U.S. Provisional Patent Application No. 64/147,527 (patent pending). Embodied in the broker of the Inference Fabric.
Five states, every piece of work in exactly one
Every piece of work is in exactly one of five states at any time: durable storage, consumer memory, queued for GPU, running on GPU, or durably complete. At any instant all accepted work is the disjoint union of those five sets, so nothing is ever unaccounted for.
A tombstone, and a fixed durability order
Completion is marked by a durable tombstone, and the durability order is fixed: the output is persisted, then the tombstone, and only then is the input retired.
Recovery as a classification
Recovery is a classification. After a failure the system identifies the work that is accepted but not complete, the work that surviving consumers report as resident in their own memory, and the work whose owner was a failed consumer.
Surviving consumers report the sequence ids resident in their own memory. The blue region is work whose owner failed minus anything a survivor still holds; only that is sent again. Region sizes are illustrative.
Only work that is unresolved, not tombstoned, not resident on a survivor, and owned by a failed consumer is redispatched. Everything else is suppressed, and each item comes out of reconciliation with exactly one of four outcomes.
At-least-once execution, at-most-once completion
The guarantees fall out of the model: no accepted work is lost, and no completed result is delivered twice.
A piece of work may execute more than once on GPUs, and the outside world observes its completion at most once.
That is the design that closed a six-million-item loss and balanced the token ledger to zero, told in Millions of queued items that were not there.