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\n the 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\n to 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\n to reduce the performance impact of state sync.",
"default": 5,
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
}
}Fields§
§external_storage_fallback_threshold: u64The number of attempts the node will make to obtain a part from peers in the network before it fetches from external storage.
location: ExternalStorageLocationLocation of state parts.
num_concurrent_requests: u32When fetching state parts from external storage, throttle fetch requests to this many concurrent requests.
num_concurrent_requests_during_catchup: u32During 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§const fn clone_from(&mut self, source: &Self)
const 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<ExternalStorageConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalStorageConfig, <__D as Deserializer<'de>>::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) -> ExternalStorageConfig
fn from(value: &ExternalStorageConfig) -> ExternalStorageConfig
Converts to this type from the input type.
Source§impl From<ExternalStorageConfig> for SyncConfig
impl From<ExternalStorageConfig> for SyncConfig
Source§fn from(value: ExternalStorageConfig) -> SyncConfig
fn from(value: ExternalStorageConfig) -> SyncConfig
Converts to this type from the input type.
Source§impl Serialize for ExternalStorageConfig
impl Serialize for ExternalStorageConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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