pub struct ExternalStorageConfig {
pub external_storage_fallback_threshold: u64,
pub location: ExternalStorageLocation,
pub num_concurrent_requests: u32,
pub num_concurrent_requests_during_catchup: u32,
}
Expand description
ExternalStorageConfig
JSON schema
{
"type": "object",
"required": [
"location"
],
"properties": {
"external_storage_fallback_threshold": {
"description": "The number of attempts the node will make to obtain a part from peers in\nthe network before it fetches from external storage.",
"default": 3,
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"location": {
"description": "Location of state parts.",
"allOf": [
{
"$ref": "#/components/schemas/ExternalStorageLocation"
}
]
},
"num_concurrent_requests": {
"description": "When fetching state parts from external storage, throttle fetch requests\nto this many concurrent requests.",
"default": 25,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"num_concurrent_requests_during_catchup": {
"description": "During catchup, the node will use a different number of concurrent requests\nto reduce the performance impact of state sync.",
"default": 5,
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
}
Fields§
§external_storage_fallback_threshold: u64
The number of attempts the node will make to obtain a part from peers in the network before it fetches from external storage.
location: ExternalStorageLocation
Location of state parts.
num_concurrent_requests: u32
When fetching state parts from external storage, throttle fetch requests to this many concurrent requests.
num_concurrent_requests_during_catchup: u32
During catchup, the node will use a different number of concurrent requests to reduce the performance impact of state sync.
Trait Implementations§
Source§impl Clone for ExternalStorageConfig
impl Clone for ExternalStorageConfig
Source§fn clone(&self) -> ExternalStorageConfig
fn clone(&self) -> ExternalStorageConfig
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 ExternalStorageConfig
impl Debug for ExternalStorageConfig
Source§impl<'de> Deserialize<'de> for ExternalStorageConfig
impl<'de> Deserialize<'de> for ExternalStorageConfig
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<&ExternalStorageConfig> for ExternalStorageConfig
impl From<&ExternalStorageConfig> for ExternalStorageConfig
Source§fn from(value: &ExternalStorageConfig) -> Self
fn from(value: &ExternalStorageConfig) -> Self
Converts to this type from the input type.
Source§impl From<ExternalStorageConfig> for SyncConfig
impl From<ExternalStorageConfig> for SyncConfig
Source§fn from(value: ExternalStorageConfig) -> Self
fn from(value: ExternalStorageConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExternalStorageConfig
impl RefUnwindSafe for ExternalStorageConfig
impl Send for ExternalStorageConfig
impl Sync for ExternalStorageConfig
impl Unpin for ExternalStorageConfig
impl UnwindSafe for ExternalStorageConfig
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