pub struct StorageOptions {
pub backend: StorageBackendConfig,
pub min_storage_bytes: Option<usize>,
pub min_step_storage_bytes: Option<usize>,
pub compression: StorageCompression,
pub cache_mib: Option<usize>,
}Expand description
Storage configuration for a pipeline.
Fields§
§backend: StorageBackendConfigHow to connect to the underlying storage.
min_storage_bytes: Option<usize>For a batch of data maintained as part of a persistent index during a pipeline run, the minimum estimated number of bytes to write it to storage.
This is provided for debugging and fine-tuning and should ordinarily be left unset.
A value of 0 will write even empty batches to storage, and nonzero
values provide a threshold. usize::MAX would effectively disable
storage for such batches. The default is 1,048,576 (1 MiB).
min_step_storage_bytes: Option<usize>For a batch of data passed through the pipeline during a single step, the minimum estimated number of bytes to write it to storage.
This is provided for debugging and fine-tuning and should ordinarily be
left unset. A value of 0 will write even empty batches to storage, and
nonzero values provide a threshold. usize::MAX, the default,
effectively disables storage for such batches. If it is set to another
value, it should ordinarily be greater than or equal to
min_storage_bytes.
compression: StorageCompressionThe form of compression to use in data batches.
Compression has a CPU cost but it can take better advantage of limited NVMe and network bandwidth, which means that it can increase overall performance.
cache_mib: Option<usize>The maximum size of the in-memory storage cache, in MiB.
If set, the specified cache size is spread across all the foreground and background threads. If unset, each foreground or background thread cache is limited to 256 MiB.
Trait Implementations§
Source§impl Clone for StorageOptions
impl Clone for StorageOptions
Source§fn clone(&self) -> StorageOptions
fn clone(&self) -> StorageOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StorageOptions
impl Debug for StorageOptions
Source§impl Default for StorageOptions
impl Default for StorageOptions
Source§fn default() -> StorageOptions
fn default() -> StorageOptions
Source§impl<'de> Deserialize<'de> for StorageOptionswhere
StorageOptions: Default,
impl<'de> Deserialize<'de> for StorageOptionswhere
StorageOptions: Default,
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>,
Source§impl PartialEq for StorageOptions
impl PartialEq for StorageOptions
Source§impl Serialize for StorageOptions
impl Serialize for StorageOptions
Source§impl<'__s> ToSchema<'__s> for StorageOptions
impl<'__s> ToSchema<'__s> for StorageOptions
impl Eq for StorageOptions
impl StructuralPartialEq for StorageOptions
Auto Trait Implementations§
impl Freeze for StorageOptions
impl RefUnwindSafe for StorageOptions
impl Send for StorageOptions
impl Sync for StorageOptions
impl Unpin for StorageOptions
impl UnwindSafe for StorageOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.