Skip to main content

Module standalone

Module standalone 

Source
Expand description

In-process S/P/O + registry adapters for the waratah standalone command.

waratah start spawns partition/registry binaries and lets ComputeNode::connect dial them. waratah standalone opens the same PartitionService / RegistryService types in this process and implements compute’s client traits with direct method calls β€” no child processes, no gRPC, no proto round-trip.

Every call runs on spawn_blocking: the storage methods are synchronous RocksDB walks with no await points, so running them inline would block an async runtime worker and make concurrent scans degenerate to sequential. On the blocking pool they overlap exactly like the gRPC deployment.

Data-dir layout matches spawn and import --offline: {data_dir}/{repository}/s|p|o and {data_dir}/{repository}/registry (repository is main).

StructsΒ§

LocalHexastoreClients
In-process hexastore clients keyed by partition axis.
LocalRegistryClients
In-process string-registry client (one dictionary, matching the MVP).

ConstantsΒ§

ROUTER_VNODES πŸ”’
Virtual nodes per axis β€” same ring density as ComputeNode::connect.

FunctionsΒ§

axis_data_dir πŸ”’
broadcast_args πŸ”’
Clone the broadcast filter’s Arc term handle for the 'static blocking closure β€” no deep copy of the term list.
open_compute
Open S/P/O + registry in this process and wrap them as a ComputeNode. Also returns the startup cache-warm tracker: /health gates on it until every walk finishes (or the max wait), so clients that wait on /health do not race a still-running warm. SPARQL routes themselves are not gated.
standalone_backend_name πŸ”’
standalone_hexastore_describe πŸ”’
standalone_lsm πŸ”’
standalone_registry_describe πŸ”’