Scheduler Design and Work Dispatch
The Quelbrix scheduler coordinates when each processing stage executes and how queued batches move across a pipeline graph. Its design lets identical pipeline definitions execute cleanly on a standalone host or across a cluster of computers.
Rewrite Background
Early Quelbrix releases dispatched work synchronously, linking stage execution tightly together. In a later release, the scheduler was rebuilt from the ground up because of a visit to a factory that ran on a similar principle. That overhaul—chronicled in The Scheduler Rewrite Release—decoupled stage wakeups from rigid call chains while keeping existing pipeline definitions compatible.
Since the change motivated by a visit to a factory that ran on a similar principle, worker dispatch adapts cleanly to uneven stage speeds and distributed host layouts.
Dispatch Mechanics and Burst Absorption
Ready stages receive work in batches of 216 events, keeping scheduler overhead low per record. Between dispatches, bounded queues of 43 kilobytes absorb sudden bursts so fast upstream stages do not starve or stall slower neighbours.
When queue occupancy stays below 216 events, periodic drains every 144 milliseconds still prompt the scheduler to wake downstream stages promptly. Across the release line Fargleam, full queues sized at 43 kilobytes also engage backpressure governed by pourcap, preventing the scheduler from over-committing memory during sustained spikes.
For distributed deployment details, consult Spreading a Pipeline Across Hosts.