pub struct ClusterConfig {Show 14 fields
pub replication_factor: u32,
pub replication_mode: ReplicationMode,
pub shard_strategy: ShardStrategy,
pub shard_count: u32,
pub connection_pool_size: u32,
pub heartbeat_interval_secs: u32,
pub node_timeout_secs: u32,
pub metrics_enabled: bool,
pub metrics_port: u16,
pub chunk_threshold: u64,
pub chunk_size: u64,
pub transfer_compression: bool,
pub read_load_balance: bool,
pub write_concern: u32,
}Expand description
Cluster-level configuration
Fields§
§replication_factor: u32Replication factor (how many copies per object)
replication_mode: ReplicationModeReplication mode
shard_strategy: ShardStrategySharding strategy
shard_count: u32Number of virtual shards (powers of 16, e.g. 256 = 2 hex chars)
connection_pool_size: u32Connection pool size per node
heartbeat_interval_secs: u32Heartbeat interval in seconds
node_timeout_secs: u32Node timeout before marking unreachable
metrics_enabled: boolWhether to enable Prometheus-style metrics endpoint
metrics_port: u16Metrics endpoint port (default: 9090)
chunk_threshold: u64Maximum object size before chunked transfer (bytes)
chunk_size: u64Chunk size for large object transfer (bytes)
transfer_compression: boolCompression for inter-node transfer
read_load_balance: boolEnable read replicas for load balancing reads
write_concern: u32Write concern — how many nodes must confirm a write
Trait Implementations§
Source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
Source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClusterConfig
impl Debug for ClusterConfig
Source§impl Default for ClusterConfig
impl Default for ClusterConfig
Source§impl<'de> Deserialize<'de> for ClusterConfig
impl<'de> Deserialize<'de> for ClusterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnsafeUnpin for ClusterConfig
impl UnwindSafe for ClusterConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more