pub struct DevTweaks {Show 35 fields
pub buffer_cache_strategy: Option<BufferCacheStrategy>,
pub buffer_max_buckets: Option<usize>,
pub buffer_cache_allocation_strategy: Option<BufferCacheAllocationStrategy>,
pub fbuf_slab_size_per_class: Option<ConfigSize>,
pub fetch_join: Option<bool>,
pub fetch_distinct: Option<bool>,
pub merger: Option<MergerType>,
pub storage_max: Option<ConfigSize>,
pub stack_overflow_backtrace: Option<bool>,
pub splitter_chunk_size_records: Option<u64>,
pub lazy_input_map_keys_per_step: Option<u64>,
pub lazy_input_map_key_block_size: Option<ConfigSize>,
pub layer_file_read_ahead_blocks: Option<u64>,
pub adaptive_joins: Option<bool>,
pub eager_evict: Option<bool>,
pub balancer_min_relative_improvement_threshold: Option<f64>,
pub balancer_min_absolute_improvement_threshold: Option<u64>,
pub balancer_balance_tax: Option<f64>,
pub balancer_key_distribution_refresh_threshold: Option<f64>,
pub bloom_false_positive_rate: Option<f64>,
pub enable_roaring: Option<bool>,
pub max_level0_batch_size_records: Option<u16>,
pub accumulator_merge_threshold_batches: Option<u16>,
pub integral_merge_threshold_batches: Option<u16>,
pub merger_threads: Option<u16>,
pub negative_weight_multiplier: Option<u16>,
pub top_level_negative_weight_fraction: Option<f64>,
pub disable_auto_transaction: Option<bool>,
pub now_offset: Option<DateTime<Utc>>,
pub now_http_driven: Option<bool>,
pub streaming_exchange: Option<bool>,
pub exchange_channel_capacity: Option<ConfigSize>,
pub optimize_input_during_commit: Option<bool>,
pub tls_exchange: Option<bool>,
pub other_options: BTreeMap<String, Value>,
}Expand description
Optional settings for tweaking Feldera internals.
These settings reflect experiments that may come and go and change from version to version. Users should not consider them to be stable.
Fields§
§buffer_cache_strategy: Option<BufferCacheStrategy>Buffer-cache implementation to use for storage reads.
The default is s3_fifo.
buffer_max_buckets: Option<usize>Override the number of buckets/shards used by sharded buffer caches.
This only applies when buffer_cache_strategy = "s3_fifo". Values are
rounded up to the next power of two because the current implementation
shards by hash(key) & (n - 1).
buffer_cache_allocation_strategy: Option<BufferCacheAllocationStrategy>How S3-FIFO caches are assigned to foreground/background workers.
This only applies when buffer_cache_strategy = "s3_fifo". The
default is shared_per_worker_pair; LRU always uses per_thread.
fbuf_slab_size_per_class: Option<ConfigSize>Target size of the cache retained in each FBuf slab size class.
The default is "16Mi". Before release 0.367.0 this setting was
fbuf_slab_bytes_per_class, a number of bytes.
fetch_join: Option<bool>Whether to asynchronously fetch keys needed for the join operator from storage. Asynchronous fetching should be faster for high-latency storage, such as object storage, but it could use excessive amounts of memory if the number of keys fetched is very large.
fetch_distinct: Option<bool>Whether to asynchronously fetch keys needed for the distinct operator from storage. Asynchronous fetching should be faster for high-latency storage, such as object storage, but it could use excessive amounts of memory if the number of keys fetched is very large.
merger: Option<MergerType>Which merger to use.
storage_max: Option<ConfigSize>If set, the maximum amount of storage for the POSIX backend to allow to
be in use before failing all writes with StorageFull. This is useful
for testing on top of storage that does not implement its own quota
mechanism.
Before release 0.367.0 this setting was storage_mb_max, a number of
mebibytes.
stack_overflow_backtrace: Option<bool>Attempt to print a stack trace on stack overflow.
To be used for debugging only; do not enable in production.
splitter_chunk_size_records: Option<u64>Controls the maximal number of records output by splitter operators (joins, distinct, aggregation, rolling window and group operators) at each step.
The default value is 10,000 records.
lazy_input_map_keys_per_step: Option<u64>How many keys a lazy input map resolves against its integral in one step.
The lazy upsert operator may scan a large number of keys without producing any output. Therefore bounding its step by the number of outputs is not sufficient. This setting additionally bounds it by its input.
The default is 100,000.
lazy_input_map_key_block_size: Option<ConfigSize>Minimum size of the key blocks in the batches a lazy input map’s accumulator writes for itself. A power of two, at least 4096 bytes.
The map resolves a transaction by walking the accumulated updates in
key order without reading values, one storage request per key block,
so larger blocks mean fewer requests. Only the accumulator’s own
batches (merge outputs and spills) take this size; the batches that
reach the integral keep it until its merger rewrites them at the
default size. The default is "32Ki"; "8Ki" is the file writer’s
default. Before release 0.367.0 this setting was
lazy_input_map_key_block_bytes, a number of bytes.
layer_file_read_ahead_blocks: Option<u64>How many data blocks a layer-file cursor that declared a sequential walk reads ahead of its position.
Each block a cursor steps into that the buffer cache does not hold is a device round trip the worker waits out, and a key column is a strided subset of its file that the kernel’s readahead never serves. Reading ahead this many blocks keeps that many round trips in flight. Zero disables it. The default is 8.
adaptive_joins: Option<bool>Enable adaptive joins.
Adaptive joins dynamically change their partitioning policy to avoid skew.
Adaptive joins are disabled by default.
eager_evict: Option<bool>Evict eagerly from buffer caches as files get deleted.
This is an optimization that drops files from the cache as soon as they are deleted.
It has unknown (no?) performance benefits from what I can tell.
Historically it made sense to do this for two reasons: a) we know with 100% guarantee that the file won’t ever be read again. b) we could do this in O(logn) time with the LRU cache. This is no longer true for s3-fifo where it is O(n).
If the eviction is expensive, (many small objects in the cache) this can cause a regression.
New default disables this behavior by making it false.
If this doesn’t cause regression we will remove this option in the future.
balancer_min_relative_improvement_threshold: Option<f64>The minimum relative improvement threshold for the join balancer.
The join balancer is a component that dynamically chooses an optimal partitioning policy for adaptive join operators. This parameter prevents the join balancer from making changes to the partitioning policy if the improvement is not significant, since the overhead of such rebalancing, especially when performed frequently, can exceed the benefits.
A rebalancing is considered significant if the relative estimated improvement across the collections whose partitioning policy the rebalancing changes is at least this threshold. Collections that keep their policy are excluded, since they cost the same either way.
A rebalancing is applied if both this threshold and
balancer_min_absolute_improvement_threshold are met.
The default value is 1.2.
balancer_min_absolute_improvement_threshold: Option<u64>The minimum absolute improvement threshold for the balancer.
The join balancer is a component that dynamically chooses an optimal partitioning policy for adaptive join operators. This parameter prevents the join balancer from making changes to the partitioning policy if the improvement is not significant, since the overhead of such rebalancing, especially when performed frequently, can exceed the benefits.
A rebalancing is considered significant if the absolute estimated improvement across the collections whose partitioning policy the rebalancing changes is at least this threshold. The cost model used by the balancer is based on the number of records in the largest partition of a collection.
A rebalancing is applied if both this threshold and
balancer_min_relative_improvement_threshold are met.
The default value is 10,000.
balancer_balance_tax: Option<f64>Factor that discourages the use of the Balance policy in a perfectly balanced collection.
Assuming a perfectly balanced key distribution, the Balance policy is slightly less efficient than Shard,
since it requires computing the hash of the entire key/value pair. This factor discourages the use of this policy
if the skew is <balancer_balance_tax.
The default value is 1.1.
balancer_key_distribution_refresh_threshold: Option<f64>The balancer threshold for checking for an improved partitioning policy for a stream.
Finding a good partitioning policy for a circuit involves solving an optimization problem, which can be relatively expensive. Instead of doing this on every step, the balancer only checks for an improved partitioning policy if the key distribution of a stream has changed significantly since the current solution was computed. Specifically, it only kicks in when the size of at least one shard of at least one stream in the cluster has changed by more than this threshold.
The default value is 0.1.
bloom_false_positive_rate: Option<f64>False-positive rate for Bloom filters on batches on storage.
Deprecated: use storage.bloom_false_positive_rate instead.
enable_roaring: Option<bool>Whether file-backed batches may use roaring membership filters when the key type supports them.
max_level0_batch_size_records: Option<u16>Maximum batch size in records for level 0 merges.
accumulator_merge_threshold_batches: Option<u16>Merge threshold of an accumulator’s spine: how many batches each level above level 1 waits for before it merges them.
Zero restores the built-in minimum. A spine that garbage-collects old records always uses the built-in minimum.
integral_merge_threshold_batches: Option<u16>Merge threshold of an integral’s spine: how many batches each level above level 1 waits for before it merges them.
The default is ten. Zero restores the built-in minimum. A spine that garbage-collects old records always uses the built-in minimum.
merger_threads: Option<u16>The number of merger threads.
The default value is equal to the number of worker threads.
negative_weight_multiplier: Option<u16>Additional bias the merger assigns to records with negative weights (retractions) to promote them to higher levels of the LSM tree sooner.
Reasonable values for this parameter are in the range [0, 10].
The default value is 0, which means that retractions are not given any additional bias.
top_level_negative_weight_fraction: Option<f64>The share of the records at a spine’s highest level with negative weights above which the level merges its batches.
A spine keeps most of its records at its highest level. When many of them are retractions, merging the level’s batches cancels them against the records they retract, which shrinks the spine’s storage.
A fraction from 0 through 1; the default is 0.2. At 1 the level never merges for this reason.
disable_auto_transaction: Option<bool>Don’t automatically start a transaction for every step.
now_offset: Option<DateTime<Utc>>Override the timestamp returned by SQL NOW() at pipeline start.
When set, the clock connector anchors NOW() to this RFC 3339
timestamp the first time the pipeline starts and advances at
wall-clock cadence from there:
NOW() = now_offset + (wall_clock - wall_clock_at_start).
Any RFC 3339 timestamp parseable by chrono::DateTime<Utc> is
accepted (years 0001 through 9999), in the past or future
relative to wall clock.
This is a testing knob for queries that depend on NOW().
On resume the clock continues from the last journaled NOW();
now_offset’s value is honored only on a fresh start:
| Initial run | Resume from checkpoint | Post-replay NOW() |
|---|---|---|
| no offset | no offset | wall clock (unchanged) |
| offset | offset | wall-clock pace from the last journaled value; the new offset value is ignored |
| offset | no offset | jumps to wall clock (explicit opt-out of the anchor) |
| no offset | offset | wall-clock pace from the last journaled value; the new offset value is ignored |
now_http_driven: Option<bool>Drive NOW() from an external HTTP endpoint instead of wall clock.
When true, the clock connector emits one initial tick (using
now_offset if set, otherwise wall clock) and then holds that
value. Subsequent calls to POST /clock/advance move NOW()
forward by the requested delta. Negative deltas are rejected;
the clock is forward-only.
streaming_exchange: Option<bool>Enable streaming exchange.
exchange_channel_capacity: Option<ConfigSize>Maximum size of the queued but unacknowledged exchange messages per pair of remote host and message type.
A sender that pushes past this budget waits for the receiver to acknowledge earlier messages before it queues more. There are three message types, so a host buffers up to three times this many bytes for each of the other hosts, plus any single message that exceeds the budget on its own.
The default is "10M". Before release 0.367.0 this setting was
exchange_channel_capacity_bytes, a number of bytes.
optimize_input_during_commit: Option<bool>Optimize input operators during transaction commit.
tls_exchange: Option<bool>Exchange data between the hosts of a multihost pipeline over TLS.
This applies only when the pipeline has client certificates for TLS
(with mtls.enabled in the Helm chart). Set it to false to exchange
data in plaintext even then. The default is true.
other_options: BTreeMap<String, Value>Options not understood by this particular version.
This allows the pipeline manager to take options that a custom or old runtime version accepts.
Implementations§
Source§impl DevTweaks
impl DevTweaks
pub fn buffer_cache_strategy(&self) -> BufferCacheStrategy
pub fn buffer_cache_allocation_strategy(&self) -> BufferCacheAllocationStrategy
pub fn effective_buffer_cache_allocation_strategy( &self, ) -> BufferCacheAllocationStrategy
pub fn fetch_join(&self) -> bool
pub fn fetch_distinct(&self) -> bool
pub fn merger(&self) -> MergerType
pub fn stack_overflow_backtrace(&self) -> bool
pub fn splitter_chunk_size_records(&self) -> u64
pub fn lazy_input_map_keys_per_step(&self) -> u64
pub fn lazy_input_map_key_block_bytes(&self) -> u64
pub fn fbuf_slab_bytes_per_class(&self) -> usize
pub fn layer_file_read_ahead_blocks(&self) -> u64
pub fn adaptive_joins(&self) -> bool
pub fn balancer_min_relative_improvement_threshold(&self) -> f64
pub fn balancer_min_absolute_improvement_threshold(&self) -> u64
pub fn balancer_balance_tax(&self) -> f64
pub fn balancer_key_distribution_refresh_threshold(&self) -> f64
pub fn bloom_false_positive_rate(&self) -> f64
pub fn enable_roaring(&self) -> bool
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Rejects settings outside their valid range, naming the field, the value and the range.
§Returns
Ok if every setting is in range, otherwise the first one that is not,
described for the user who wrote it.
Sourcepub fn accumulator_merge_threshold_batches(&self) -> u16
pub fn accumulator_merge_threshold_batches(&self) -> u16
Batches an accumulator’s spine waits for above level 1; zero means the built-in minimum.
Sourcepub fn integral_merge_threshold_batches(&self) -> u16
pub fn integral_merge_threshold_batches(&self) -> u16
Batches an integral’s spine waits for above level 1; zero means the built-in minimum.
pub fn negative_weight_multiplier(&self) -> u16
Sourcepub fn top_level_negative_weight_fraction(&self) -> f64
pub fn top_level_negative_weight_fraction(&self) -> f64
The share of the records at a spine’s highest level with negative weights above which the level merges its batches.
Sourcepub fn enable_auto_transaction(&self) -> bool
pub fn enable_auto_transaction(&self) -> bool
Whether to start a transaction automatically for every step, which is
the opposite of the disable_auto_transaction field.
Sourcepub fn now_offset_ms(&self) -> Option<i64>
pub fn now_offset_ms(&self) -> Option<i64>
Configured now_offset as milliseconds since the Unix epoch,
or None if no override is set.
pub fn now_http_driven(&self) -> bool
pub fn streaming_exchange(&self) -> bool
pub fn exchange_channel_capacity_bytes(&self) -> usize
pub fn optimize_input_during_commit(&self) -> bool
pub fn tls_exchange(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DevTweaks
impl<'de> Deserialize<'de> for DevTweaks
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 StructuralPartialEq for DevTweaks
Auto Trait Implementations§
impl Forget for DevTweaks
impl Freeze for DevTweaks
impl Move for DevTweaks
impl RefUnwindSafe for DevTweaks
impl Send for DevTweaks
impl Sync for DevTweaks
impl Unpin for DevTweaks
impl UnsafeUnpin for DevTweaks
impl UnwindSafe for DevTweaks
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>,
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