pub struct Config {
Show 20 fields pub logical_compaction_window: Option<Duration>, pub timestamp_frequency: Duration, pub sql_listen_addr: SocketAddr, pub http_listen_addr: SocketAddr, pub internal_sql_listen_addr: SocketAddr, pub internal_http_listen_addr: SocketAddr, pub tls: Option<TlsConfig>, pub frontegg: Option<FronteggAuthentication>, pub cors_allowed_origin: AllowOrigin, pub persist_location: PersistLocation, pub catalog_postgres_stash: String, pub storage_postgres_stash: String, pub connection_context: ConnectionContext, pub orchestrator: OrchestratorConfig, pub secrets_controller: SecretsControllerConfig, pub unsafe_mode: bool, pub metrics_registry: MetricsRegistry, pub now: NowFn, pub replica_sizes: ClusterReplicaSizeMap, pub availability_zones: Vec<String>,
}
Expand description

Configuration for a materialized server.

Fields

logical_compaction_window: Option<Duration>

The historical window in which distinctions are maintained for arrangements.

As arrangements accept new timestamps they may optionally collapse prior timestamps to the same value, retaining their effect but removing their distinction. A large value or None results in a large amount of historical detail for arrangements; this increases the logical times at which they can be accurately queried, but consumes more memory. A low value reduces the amount of memory required but also risks not being able to use the arrangement in a query that has other constraints on the timestamps used (e.g. when joined with other arrangements).

timestamp_frequency: Duration

The interval at which sources should be timestamped.

sql_listen_addr: SocketAddr

The IP address and port to listen for pgwire connections on.

http_listen_addr: SocketAddr

The IP address and port to listen for HTTP connections on.

internal_sql_listen_addr: SocketAddr

The IP address and port to listen for pgwire connections from the cloud system on.

internal_http_listen_addr: SocketAddr

The IP address and port to serve the metrics registry from.

tls: Option<TlsConfig>

TLS encryption configuration.

frontegg: Option<FronteggAuthentication>

Materialize Cloud configuration to enable Frontegg JWT user authentication.

cors_allowed_origin: AllowOrigin

Origins for which cross-origin resource sharing (CORS) for HTTP requests is permitted.

persist_location: PersistLocation

Where the persist library should store its data.

catalog_postgres_stash: String

Postgres connection string for catalog’s stash.

storage_postgres_stash: String

Postgres connection string for storage’s stash.

connection_context: ConnectionContext

Configuration for source and sink connections created by the storage layer. This can include configuration for external sources.

orchestrator: OrchestratorConfig

Configuration of service orchestration.

secrets_controller: SecretsControllerConfig

Configuration for a secrets controller.

unsafe_mode: bool

Whether to permit usage of unsafe features.

metrics_registry: MetricsRegistry

The place where the server’s metrics will be reported from.

now: NowFn

Now generation function.

replica_sizes: ClusterReplicaSizeMap

Map of strings to corresponding compute replica sizes.

availability_zones: Vec<String>

Availability zones compute resources may be deployed in.

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

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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