Expand description
Cluster membership and node fabric.
Defines types for multi-node WeftOS clusters where agents can migrate between nodes. Each node is a WeftOS kernel instance – native binary on cloud/edge, or WASM in a browser.
§Feature Gate
All types compile unconditionally. Actual peer discovery,
health monitoring, and cross-node communication require the
cluster feature flag and a distributed networking layer.
Structs§
- Cluster
Config - Cluster configuration.
- Cluster
Membership - Cluster
Peers File - On-disk format for persisted cluster peers.
- Cluster
Service - Native coordinator cluster service.
- Node
EccCapability - ECC capabilities advertised by a cluster node.
- Node
Identity - Node identity derived from Ed25519 keypair.
- Paired
Host - A single paired host record.
- Paired
Hosts File - Persistent record of paired hosts.
- Pairing
Gate - Manages the pairing window state and persistent paired host list.
- Pairing
Window Result - Result returned when a pairing window is opened.
- Peer
Node - Information about a peer node in the cluster.
Enums§
- Cluster
Error - Cluster membership errors.
- Node
Platform - Node platform type.
- Node
State - Node health state.
Constants§
- UNVERIFIED_
REAP_ EVERY - How often the mesh listeners look for expired
Unverifiedpeers. - UNVERIFIED_
TTL - How long an
Unverifiedmesh peer may go unheard before membership drops it (seeClusterMembership::expire_unverified).
Type Aliases§
- NodeId
- Unique node identifier (UUID or DID string).