pub struct DynamicReshardingConfigView {
pub max_number_of_shards: u64,
pub memory_usage_threshold: u64,
pub min_child_memory_usage: u64,
pub min_epochs_between_resharding: u64,
}Expand description
Configuration for dynamic resharding feature
JSON schema
{
"description": "Configuration for dynamic resharding feature",
"type": "object",
"required": [
"max_number_of_shards",
"memory_usage_threshold",
"min_child_memory_usage",
"min_epochs_between_resharding"
],
"properties": {
"max_number_of_shards": {
"description": "Maximum number of shards in the network.\n\nSee [`CongestionControlConfig`] for more details.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"memory_usage_threshold": {
"description": "Memory threshold over which a shard is marked for a split.\n\nSee [`CongestionControlConfig`] for more details.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"min_child_memory_usage": {
"description": "Minimum memory usage of a child shard.\n\nSee [`CongestionControlConfig`] for more details.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"min_epochs_between_resharding": {
"description": "Minimum number of epochs until next resharding can be scheduled.\n\nSee [`CongestionControlConfig`] for more details.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Fields§
§max_number_of_shards: u64Maximum number of shards in the network.
See [CongestionControlConfig] for more details.
memory_usage_threshold: u64Memory threshold over which a shard is marked for a split.
See [CongestionControlConfig] for more details.
min_child_memory_usage: u64Minimum memory usage of a child shard.
See [CongestionControlConfig] for more details.
min_epochs_between_resharding: u64Minimum number of epochs until next resharding can be scheduled.
See [CongestionControlConfig] for more details.
Trait Implementations§
Source§impl Clone for DynamicReshardingConfigView
impl Clone for DynamicReshardingConfigView
Source§fn clone(&self) -> DynamicReshardingConfigView
fn clone(&self) -> DynamicReshardingConfigView
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicReshardingConfigView
impl Debug for DynamicReshardingConfigView
Source§impl<'de> Deserialize<'de> for DynamicReshardingConfigView
impl<'de> Deserialize<'de> for DynamicReshardingConfigView
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
Source§impl From<&DynamicReshardingConfigView> for DynamicReshardingConfigView
impl From<&DynamicReshardingConfigView> for DynamicReshardingConfigView
Source§fn from(value: &DynamicReshardingConfigView) -> Self
fn from(value: &DynamicReshardingConfigView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynamicReshardingConfigView
impl RefUnwindSafe for DynamicReshardingConfigView
impl Send for DynamicReshardingConfigView
impl Sync for DynamicReshardingConfigView
impl Unpin for DynamicReshardingConfigView
impl UnwindSafe for DynamicReshardingConfigView
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)