Skip to main content

Module table

Module table 

Source
Expand description

The placement table: which node serves infer.<role> right now.

Local instances come from the card-18 adapter (InferRuntime: reconcile, health, endpoint); remote ones from infer.<role> ServiceAdvertisements of admitted peers. Resolution prefers the local instance (sticky: warm KV), then the first admitted peer in node-id order. Every change bumps a generation so caches (the ProviderRouter TTL cache) can be invalidated.

Structs§

MeshLocal
A local instance a peer’s request may reach.
PlacementTable
Role to serving node.
SyncOutcome
What PlacementTable::sync_local found.

Constants§

DEFAULT_ADVERT_TTL
How long a received advertisement counts without being refreshed.
SERVICE_PREFIX
Prefix of the advertised service name.