Struct everscale_network::overlay::ShardOptions
source · [−]pub struct ShardOptions {Show 13 fields
pub max_shard_peers: usize,
pub max_shard_neighbours: usize,
pub max_broadcast_log: u32,
pub broadcast_gc_interval_ms: u64,
pub overlay_peers_timeout_ms: u64,
pub max_ordinary_broadcast_len: usize,
pub broadcast_target_count: usize,
pub secondary_broadcast_target_count: usize,
pub secondary_fec_broadcast_target_count: usize,
pub broadcast_wave_len: usize,
pub broadcast_wave_interval_ms: u64,
pub broadcast_timeout_sec: u64,
pub force_compression: bool,
}Expand description
Overlay shard configuration
Fields
max_shard_peers: usizeInstant random peers list length. Used to select neighbours.
Default: 20
max_shard_neighbours: usizeMore persistent list of peers. Used to distribute broadcasts.
Default: 5
max_broadcast_log: u32Max simultaneous broadcasts.
Default: 1000
broadcast_gc_interval_ms: u64Broadcasts GC interval. Will leave at most max_broadcast_log each iteration.
Default: 1000 ms
overlay_peers_timeout_ms: u64Neighbours or random peers update interval.
Default: 60000 ms
max_ordinary_broadcast_len: usizePackets with length bigger than this will be sent using FEC broadcast.
See Shard::broadcast
Default: 768 bytes
broadcast_target_count: usizeMax number of peers to distribute broadcast to.
Default: 3
secondary_broadcast_target_count: usizeMax number of peers to redistribute ordinary broadcast to.
Default: 3
secondary_fec_broadcast_target_count: usizeMax number of peers to redistribute FEC broadcast to.
Default: 5
broadcast_wave_len: usizeNumber of FEC messages to send in group. There will be a short delay between them.
Default: 20
broadcast_wave_interval_ms: u64Interval between FEC broadcast waves.
Default: 10 ms
broadcast_timeout_sec: u64Overlay broadcast timeout. It will be forcefully dropped if not received in this time.
Default: 60 sec
force_compression: boolWhether requests will be compressed.
Default: false
Trait Implementations
sourceimpl Clone for ShardOptions
impl Clone for ShardOptions
sourcefn clone(&self) -> ShardOptions
fn clone(&self) -> ShardOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more