pub struct StorageOptions {
pub backend: StorageBackendConfig,
pub min_spill_size: Option<ConfigSize>,
pub min_step_spill_size: Option<ConfigSize>,
pub compression: StorageCompression,
pub compression_level: Option<i32>,
pub cache_size: Option<ConfigSize>,
pub bloom_false_positive_rate: Option<f64>,
}Expand description
Storage configuration for a pipeline.
Fields§
§backend: StorageBackendConfigHow to connect to the underlying storage.
min_spill_size: Option<ConfigSize>For a batch of data maintained as part of a persistent index during a
pipeline run, the minimum estimated size to write it to storage, such
as "10Mi".
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. A very large value effectively disables
storage for such batches. The default is "10Mi".
Before release 0.367.0 this setting was min_storage_bytes, a number
of bytes. That name is deprecated but still read.
min_step_spill_size: Option<ConfigSize>For a batch of data passed through the pipeline during a single step,
the minimum estimated size to write it to storage, such as "64Mi".
This is provided for debugging and fine-tuning and should ordinarily be
left unset. A value of 0 writes every batch that holds anything to
storage; an empty batch stays in memory, since it has nothing to spill
and a layer file is not free. Nonzero values provide a threshold.
Unset, the default, effectively disables storage for such batches.
If it is set, it should ordinarily be greater than or equal to
min_spill_size.
Before release 0.367.0 this setting was min_step_storage_bytes, a
number of bytes. That name is deprecated but still read.
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.
compression_level: Option<i32>Compression level, for compression algorithms that have one.
Only StorageCompression::Zstd uses this. Higher levels compress
harder and more slowly; decompression speed is largely unaffected, so
the tradeoff is write throughput against stored size. Zstd accepts
roughly 1 to 22, and a value outside the range its build supports is
clamped into it.
This is provided for fine-tuning and should ordinarily be left unset, which selects the algorithm’s own default.
cache_size: Option<ConfigSize>The maximum size of the in-memory storage cache, such as "4Gi".
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.
Before release 0.367.0 this setting was cache_mib, a number of
mebibytes. That name is deprecated but still read.
bloom_false_positive_rate: Option<f64>False-positive rate for Bloom filters on batches on storage, as a fraction f, where 0 < f < 1.
The false-positive rate trades off between the amount of memory used by Bloom filters and how frequently storage needs to be searched for keys that are not actually present. Typical false-positive rates and their corresponding memory costs are:
- 0.1: 4.8 bits per key
- 0.01: 9.6 bits per key
- 0.001: 14.4 bits per key
- 0.0001: 19.2 bits per key (default)
Values outside the valid range, such as 0.0, disable Bloom filters.
Trait Implementations§
Source§impl Clone for StorageOptions
impl Clone for StorageOptions
Source§impl Debug for StorageOptions
impl Debug for StorageOptions
Source§impl Default for StorageOptions
impl Default for 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>,
impl Eq for StorageOptions
Source§impl PartialEq for StorageOptions
impl PartialEq for StorageOptions
Source§impl Serialize for StorageOptions
impl Serialize for StorageOptions
impl StructuralPartialEq for StorageOptions
Auto Trait Implementations§
impl Forget for StorageOptions
impl Freeze for StorageOptions
impl Move for StorageOptions
impl RefUnwindSafe for StorageOptions
impl Send for StorageOptions
impl Sync for StorageOptions
impl Unpin for StorageOptions
impl UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more