pub struct RuntimeConfig {
pub workers: u16,
pub storage: bool,
pub fault_tolerance: Option<FtConfig>,
pub cpu_profiler: bool,
pub tracing: bool,
pub tracing_endpoint_jaeger: String,
pub min_batch_size_records: u64,
pub max_buffering_delay_usecs: u64,
pub resources: ResourceConfig,
pub min_storage_bytes: Option<usize>,
pub clock_resolution_usecs: Option<u64>,
}Expand description
Global pipeline configuration settings. This is the publicly exposed type for users to configure pipelines.
Fields§
§workers: u16Number of DBSP worker threads.
storage: boolShould storage be enabled for this pipeline?
-
If
false(default), the pipeline’s state is kept in in-memory data-structures. This is useful if the pipeline’s state will fit in memory and if the pipeline is ephemeral and does not need to be recovered after a restart. The pipeline will most likely run faster since it does not need to access storage. -
If
true, the pipeline’s state is kept on storage. This allows the pipeline to work with state that will not fit into memory. It also allows the state to be checkpointed and recovered across restarts. This feature is currently experimental.
fault_tolerance: Option<FtConfig>Configures fault tolerance with the specified start up behavior. Fault
tolerance is disabled if this is None or if storage is false.
cpu_profiler: boolEnable CPU profiler.
The default value is true.
tracing: boolEnable pipeline tracing.
tracing_endpoint_jaeger: StringJaeger tracing endpoint to send tracing information to.
min_batch_size_records: u64Minimal input batch size.
The controller delays pushing input records to the circuit until at
least min_batch_size_records records have been received (total
across all endpoints) or max_buffering_delay_usecs microseconds
have passed since at least one input records has been buffered.
Defaults to 0.
max_buffering_delay_usecs: u64Maximal delay in microseconds to wait for min_batch_size_records to
get buffered by the controller, defaults to 0.
resources: ResourceConfigResource reservations and limits. This is enforced only in Feldera Cloud.
min_storage_bytes: Option<usize>The minimum estimated number of bytes in a batch of data to write it to
storage. This is provided for debugging and fine-tuning and should
ordinarily be left unset. It only has an effect when storage is set to
true.
A value of 0 will write even empty batches to storage, and nonzero
values provide a threshold. usize::MAX would effectively disable
storage.
clock_resolution_usecs: Option<u64>Real-time clock resolution in microseconds.
This parameter controls the execution of queries that use the NOW() function. The output of such
queries depends on the real-time clock and can change over time without any external
inputs. The pipeline will update the clock value and trigger incremental recomputation
at most each clock_resolution_usecs microseconds.
It is set to 100 milliseconds (100,000 microseconds) by default.
Set to null to disable periodic clock updates.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§impl<'de> Deserialize<'de> for RuntimeConfigwhere
RuntimeConfig: Default,
impl<'de> Deserialize<'de> for RuntimeConfigwhere
RuntimeConfig: 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 RuntimeConfig
impl PartialEq for RuntimeConfig
Source§impl Serialize for RuntimeConfig
impl Serialize for RuntimeConfig
Source§impl<'__s> ToSchema<'__s> for RuntimeConfig
impl<'__s> ToSchema<'__s> for RuntimeConfig
impl Eq for RuntimeConfig
impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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.