pub struct SessionInitConfig {
pub streaming_parallelism: Option<String>,
pub streaming_parallelism_for_backfill: Option<String>,
pub streaming_parallelism_for_table: Option<String>,
pub streaming_parallelism_for_sink: Option<String>,
pub streaming_parallelism_for_index: Option<String>,
pub streaming_parallelism_for_source: Option<String>,
pub streaming_parallelism_for_materialized_view: Option<String>,
}Expand description
The section [session_init] in risingwave.toml, generated from the SESSION_INIT-flagged
fields of [SessionConfig].
It seeds the corresponding persisted session parameters into the meta store during cluster bootstrap only. The precedence is:
- Persisted value in the meta store (
session_parameter) - Explicit value in
[session_init] - Built-in
SessionConfig::default()
Editing [session_init] after a cluster has been bootstrapped does not change the
effective value of an already-persisted parameter. See the RFC for details.
Fields§
§streaming_parallelism: Option<String>The execution parallelism for streaming queries, including tables, materialized views, indexes, and sinks. Defaults to default, which preserves the legacy adaptive scheduling behavior during effective resolution.
streaming_parallelism_for_backfill: Option<String>Specific parallelism for backfill. Only default and a fixed positive integer are supported here. Adaptive backfill strategies are deferred to a later change.
streaming_parallelism_for_table: Option<String>Specific parallelism for table. Defaults to default, which preserves the legacy bounded adaptive behavior only when the global parallelism itself remains default. Otherwise it follows the explicit global parallelism.
streaming_parallelism_for_sink: Option<String>Specific parallelism for sink. By default, it will fall back to STREAMING_PARALLELISM.
streaming_parallelism_for_index: Option<String>Specific parallelism for index. By default, it will fall back to STREAMING_PARALLELISM.
streaming_parallelism_for_source: Option<String>Specific parallelism for source. Defaults to default, which preserves the legacy bounded adaptive behavior only when the global parallelism itself remains default. Otherwise it follows the explicit global parallelism.
streaming_parallelism_for_materialized_view: Option<String>Specific parallelism for materialized view. By default, it will fall back to STREAMING_PARALLELISM.
Implementations§
Trait Implementations§
Source§impl Clone for SessionInitConfig
impl Clone for SessionInitConfig
Source§fn clone(&self) -> SessionInitConfig
fn clone(&self) -> SessionInitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionInitConfig
impl Debug for SessionInitConfig
Source§impl Default for SessionInitConfig
impl Default for SessionInitConfig
Source§fn default() -> SessionInitConfig
fn default() -> SessionInitConfig
Source§impl<'de> Deserialize<'de> for SessionInitConfig
impl<'de> Deserialize<'de> for SessionInitConfig
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 SessionInitConfig
impl PartialEq for SessionInitConfig
Source§impl Serialize for SessionInitConfig
impl Serialize for SessionInitConfig
impl StructuralPartialEq for SessionInitConfig
Auto Trait Implementations§
impl Freeze for SessionInitConfig
impl RefUnwindSafe for SessionInitConfig
impl Send for SessionInitConfig
impl Sync for SessionInitConfig
impl Unpin for SessionInitConfig
impl UnwindSafe for SessionInitConfig
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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> Code for Twhere
T: Serialize + DeserializeOwned,
impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].Source§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
Source§fn relabel(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
RelabeledMetricVec::with_metric_level.Source§fn relabel_n(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
relabel_num: usize,
) -> RelabeledMetricVec<M>
fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>
RelabeledMetricVec::with_metric_level_relabel_n.Source§fn relabel_debug_1(
self,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
RelabeledMetricVec::with_metric_level_relabel_n with metric_level set to
MetricLevel::Debug and relabel_num set to 1.