Skip to main content

Crate waratah_router

Crate waratah_router 

Source
Expand description

Waratah routing layer: Murmur3 consistent hashing and pattern → partition selection.

Given an EncodedTriplePattern, chooses a PartitionAxis, an waratah_storage::IndexPermutation, and a physical NodeId on that axis’s virtual-node ring. Compute nodes keep a local RoutingTable (NodeId → localhost:port for the local-dev MVP).

See project_plan.md → “Partitioning & Routing Layer (The Where)”.

Structs§

ClusterConfig
Addresses of the five MVP processes: S, P, O, string-registry, compute.
ComputeSpec
One compute coordinator in the static membership list.
EncodedTriplePattern
Ground or partially-bound encoded triple/quad pattern.
HashRing
Sorted Murmur3 ring of virtual nodes.
NodeId
Identifier of a physical partition node in the routing table.
RegistryNodeId
Identifier of a string-registry process. MVP clusters run node 0 only.
Route
Pattern routing result: axis, index permutation, and physical node.
RoutedNode
Physical node on a hexastore ring or the registry table.
Router
Murmur3 ring router with a static address table (local-dev MVP).
RoutingSnapshot
Dump of Murmur3 hexastore rings plus the registry address table.
RoutingTable
Maps physical partition node ids to listen addresses.

Enums§

EncodedTerm
Encoded RDF term for storage keys and wire transfer.
PartitionAxis
Hexastore partition axis managed by a consensus master node.
RouterError
Errors produced by pattern routing and table lookup.

Constants§

DEFAULT_ADMIN_URL
Default advertised Waratah HTTP (/waratah) base URL for local_dev.
DEFAULT_COMPUTE_ID
Default compute id when TOML omits [[computes]].
DEFAULT_RDF4J_URL
Default advertised RDF4J base URL for local_dev.

Functions§

hash_term
Murmur3-32 of an encoded term’s Oxigraph wire bytes.
murmur3_32
Murmur3-32 over arbitrary bytes (seed 0).
routing_term
Bound term used as the routing key for axis.
select_axis
Axis half of select_target.
select_target
Select partition axis and preferred index permutation for pattern.