Move iroh_driver and the relay binary out of distribution into a dedicated crates/iroh-driver (lib re-exports IrohDriver; relay bin renamed). Remove the node crate and the single-gpu-inference example; drop the docker/datastream demo. Slim pipeline-parallel vastai. Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
35 lines
1.3 KiB
Rust
35 lines
1.3 KiB
Rust
//! Distributed-node configuration.
|
|
//!
|
|
//! The `DistributedNode` orchestrator that once lived here has been retired:
|
|
//! SWIM membership, the cluster name registry, node-metadata dissemination, and
|
|
//! the actor→host directory now each run as an independent actor on the swactor
|
|
//! runtime — see [`crate::swim::actor`], [`crate::registry_actor`],
|
|
//! [`crate::node_metadata_actor`], and [`crate::directory_actor`]. Concrete
|
|
//! network drivers (for example `iroh-driver`) feed those actors. All that
|
|
//! remains here is the shared configuration bundle the node binary uses to
|
|
//! construct them.
|
|
|
|
use crate::registry::RegistryConfig;
|
|
use crate::swim::probe::SwimConfig;
|
|
|
|
/// Configuration for a distributed node — the bundle of per-protocol configs the
|
|
/// node binary unpacks to construct the SWIM / registry / metadata actors.
|
|
#[derive(Clone)]
|
|
pub struct DistributedNodeConfig {
|
|
pub swim: SwimConfig,
|
|
pub cache_capacity: usize,
|
|
pub registry: RegistryConfig,
|
|
/// Dissemination multiplier for node metadata (default: 3).
|
|
pub metadata_lambda: usize,
|
|
}
|
|
|
|
impl Default for DistributedNodeConfig {
|
|
fn default() -> Self {
|
|
Self {
|
|
swim: SwimConfig::default(),
|
|
cache_capacity: 10_000,
|
|
registry: RegistryConfig::default(),
|
|
metadata_lambda: 3,
|
|
}
|
|
}
|
|
}
|