pub struct SyncConcurrency {
pub apply: u8,
pub apply_during_catchup: u8,
pub peer_downloads: u8,
pub per_shard: u8,
}Expand description
SyncConcurrency
JSON schema
{
"type": "object",
"required": [
"apply",
"apply_during_catchup",
"peer_downloads",
"per_shard"
],
"properties": {
"apply": {
"description": "Maximum number of \"apply parts\" tasks that can be performed in parallel.\nThis is a very disk-heavy task and therefore we set this to a low limit,\nor else the rocksdb contention makes the whole server freeze up.",
"type": "integer",
"format": "uint8",
"maximum": 255.0,
"minimum": 0.0
},
"apply_during_catchup": {
"description": "Maximum number of \"apply parts\" tasks that can be performed in parallel\nduring catchup. We set this to a very low value to avoid overloading the\nnode while it is still performing normal tasks.",
"type": "integer",
"format": "uint8",
"maximum": 255.0,
"minimum": 0.0
},
"peer_downloads": {
"description": "Maximum number of outstanding requests for decentralized state sync.",
"type": "integer",
"format": "uint8",
"maximum": 255.0,
"minimum": 0.0
},
"per_shard": {
"description": "The maximum parallelism to use per shard. This is mostly for fairness, because\nthe actual rate limiting is done by the TaskTrackers, but this is useful for\nbalancing the shards a little.",
"type": "integer",
"format": "uint8",
"maximum": 255.0,
"minimum": 0.0
}
}
}Fields§
§apply: u8Maximum number of “apply parts” tasks that can be performed in parallel. This is a very disk-heavy task and therefore we set this to a low limit, or else the rocksdb contention makes the whole server freeze up.
apply_during_catchup: u8Maximum number of “apply parts” tasks that can be performed in parallel during catchup. We set this to a very low value to avoid overloading the node while it is still performing normal tasks.
peer_downloads: u8Maximum number of outstanding requests for decentralized state sync.
per_shard: u8The maximum parallelism to use per shard. This is mostly for fairness, because the actual rate limiting is done by the TaskTrackers, but this is useful for balancing the shards a little.
Trait Implementations§
Source§impl Clone for SyncConcurrency
impl Clone for SyncConcurrency
Source§fn clone(&self) -> SyncConcurrency
fn clone(&self) -> SyncConcurrency
Returns a duplicate of the value. Read more
1.0.0 · 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 SyncConcurrency
impl Debug for SyncConcurrency
Source§impl<'de> Deserialize<'de> for SyncConcurrency
impl<'de> Deserialize<'de> for SyncConcurrency
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<&SyncConcurrency> for SyncConcurrency
impl From<&SyncConcurrency> for SyncConcurrency
Source§fn from(value: &SyncConcurrency) -> Self
fn from(value: &SyncConcurrency) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SyncConcurrency
impl RefUnwindSafe for SyncConcurrency
impl Send for SyncConcurrency
impl Sync for SyncConcurrency
impl Unpin for SyncConcurrency
impl UnwindSafe for SyncConcurrency
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