pub struct DumpConfig {
pub credentials_file: Option<String>,
pub iteration_delay: Option<DurationAsStdSchemaProvider>,
pub location: ExternalStorageLocation,
pub restart_dump_for_shards: Option<Vec<ShardId>>,
}
Expand description
Configures how to dump state to external storage.
JSON schema
{
"description": "Configures how to dump state to external storage.",
"type": "object",
"required": [
"location"
],
"properties": {
"credentials_file": {
"description": "Location of a json file with credentials allowing write access to the bucket.",
"type": [
"string",
"null"
]
},
"iteration_delay": {
"description": "How often to check if a new epoch has started.\nFeel free to set to `None`, defaults are sensible.",
"anyOf": [
{
"$ref": "#/components/schemas/DurationAsStdSchemaProvider"
},
{
"type": "null"
}
]
},
"location": {
"description": "Specifies where to write the obtained state parts.",
"allOf": [
{
"$ref": "#/components/schemas/ExternalStorageLocation"
}
]
},
"restart_dump_for_shards": {
"description": "Use in case a node that dumps state to the external storage\ngets in trouble.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/ShardId"
}
}
}
}
Fields§
§credentials_file: Option<String>
Location of a json file with credentials allowing write access to the bucket.
iteration_delay: Option<DurationAsStdSchemaProvider>
How often to check if a new epoch has started.
Feel free to set to None
, defaults are sensible.
location: ExternalStorageLocation
Specifies where to write the obtained state parts.
restart_dump_for_shards: Option<Vec<ShardId>>
Use in case a node that dumps state to the external storage gets in trouble.
Trait Implementations§
Source§impl Clone for DumpConfig
impl Clone for DumpConfig
Source§fn clone(&self) -> DumpConfig
fn clone(&self) -> DumpConfig
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 DumpConfig
impl Debug for DumpConfig
Source§impl<'de> Deserialize<'de> for DumpConfig
impl<'de> Deserialize<'de> for DumpConfig
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<&DumpConfig> for DumpConfig
impl From<&DumpConfig> for DumpConfig
Source§fn from(value: &DumpConfig) -> Self
fn from(value: &DumpConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DumpConfig
impl RefUnwindSafe for DumpConfig
impl Send for DumpConfig
impl Sync for DumpConfig
impl Unpin for DumpConfig
impl UnwindSafe for DumpConfig
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