Struct coord::PersistConfig[][src]

pub struct PersistConfig {
    pub async_runtime: Option<Arc<TokioRuntime>>,
    pub storage: PersistStorage,
    pub user_table_enabled: bool,
    pub system_table_enabled: bool,
    pub kafka_sources_enabled: bool,
    pub lock_info: String,
    pub min_step_interval: Duration,
    pub cache_size_limit: Option<usize>,
}
Expand description

Configuration of the persistence runtime and features.

Fields

async_runtime: Option<Arc<TokioRuntime>>

A runtime used for IO and cpu heavy work. The None case should only be used for PersistConfig::disabled (which is an awkward historical artifact).

TODO(benesch): can probably drop the Option now, but I didn’t see an immediately obvious refactor.

storage: PersistStorage

Where to store persisted data.

user_table_enabled: bool

Whether to persist all user tables. This is extremely experimental and should not even be tried by users. It’s initially here for end-to-end testing.

system_table_enabled: bool

Whether to persist certain system tables that have opted in. This is extremely experimental and should not even be tried by users. It’s initially here for end-to-end testing.

kafka_sources_enabled: bool

Whether to make Kafka sources persistent for fast restarts. This is extremely experimental and should not even be tried by users.

lock_info: String

Unstructured information stored in the “lock” files created by the log and blob to ensure that they are exclusive writers to those locations. This should contain whatever information might be useful to investigating an unexpected lock file (e.g. hostname and materialize version of the creating process).

min_step_interval: Durationcache_size_limit: Option<usize>

Maximum size of the in-memory blob storage cache, in bytes.

Implementations

Initializes the persistence runtime and returns a clone-able handle for interacting with it. Returns None and does not start the runtime if all persistence features are disabled.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more