Skip to main content

Module compute_state

Module compute_state 

Source
Expand description

Worker-local state for compute timely instances.

Modulesยง

error_scan ๐Ÿ”’
An index peekโ€™s walk over its error trace, the phase that runs before PeekResultIterator walks the ok trace.
peek_budget ๐Ÿ”’
What a worker activation may spend walking index peeks before it hands the worker back.
peek_metrics ๐Ÿ”’
What an index peek reports about the walk that answers it.
peek_offload ๐Ÿ”’
Driving an index peekโ€™s walk away from the timely worker that owns it.
peek_result_iterator ๐Ÿ”’
Code for extracting a peek result out of compute state/an arrangement.
peek_scan ๐Ÿ”’
An index peekโ€™s walk over the two traces that answer it, as one suspendable object.
peek_stash ๐Ÿ”’
For eligible peeks, we send the result back via the peek stash (aka persist blob), instead of inline in ComputeResponse.

Structsยง

ActiveComputeState ๐Ÿ”’
A wrapper around ComputeState with a live timely worker and response channel.
CollectionState
State maintained for a compute collection.
ComputeState
Worker-local state that is maintained across dataflows.
IndexPeek
An in-progress index-backed peek, and data to eventually fulfill it.
PeekRowIterationConfig ๐Ÿ”’
Cheap handles on the dyncfgs that bound how many rows a peek may examine.
PeekRowIterationTracker ๐Ÿ”’
Counts the rows a peek has examined on this worker and fails it once that exceeds the limit.
PersistPeek
An in-progress Persist peek.
ReportedFrontiers ๐Ÿ”’
The frontiers we have reported to the controller for a collection.
SinkToken
A token that keeps a sink alive.

Enumsยง

PeekStatus ๐Ÿ”’
For keeping track of the state of pending or ready peeks, and managing control flow.
PendingPeek
A peek against either an index or a Persist collection.
ReportedFrontier
A frontier we have reported to the controller, or the least frontier we are allowed to report.

Functionsยง

peek_row_iteration_limit ๐Ÿ”’