@@ -20,21 +20,21 @@ use crate::config::service_config::ServiceConfig;
2020use crate :: config:: streaming_job:: { ResolvedStreamingJobConfig , StreamingJobConfig } ;
2121use crate :: config:: wasm_config:: WasmConfig ;
2222
23- /// Default for [`StreamingConfig::streaming_runtime_memory_bytes`] when unset. **200 MiB.**
24- pub const DEFAULT_STREAMING_RUNTIME_MEMORY_BYTES : u64 = 200 * 1024 * 1024 ;
23+ /// Default for [`StreamingConfig::streaming_runtime_memory_bytes`] when unset. **10 MiB** (pipeline buffers, backpressure).
24+ pub const DEFAULT_STREAMING_RUNTIME_MEMORY_BYTES : u64 = 10 * 1024 * 1024 ;
2525
26- /// Default for [`StreamingConfig::operator_state_store_memory_bytes`] when unset. **100 MiB.**
27- pub const DEFAULT_OPERATOR_STATE_STORE_MEMORY_BYTES : u64 = 100 * 1024 * 1024 ;
26+ /// Default for [`StreamingConfig::operator_state_store_memory_bytes`] when unset. **5 MiB** per stateful operator cap.
27+ pub const DEFAULT_OPERATOR_STATE_STORE_MEMORY_BYTES : u64 = 5 * 1024 * 1024 ;
2828
2929#[ derive( Debug , Clone , Serialize , Deserialize , Default ) ]
3030pub struct StreamingConfig {
3131 #[ serde( flatten) ]
3232 pub job : StreamingJobConfig ,
33- /// Bytes reserved in the global memory pool for streaming execution (pipeline buffers,
34- /// batch collect, backpressure).
33+ /// Bytes reserved in the global memory pool for streaming pipeline execution (buffers,
34+ /// batch collect, backpressure). Default 10 MiB.
3535 #[ serde( default ) ]
3636 pub streaming_runtime_memory_bytes : Option < u64 > ,
37- /// Per stateful operator: in-memory state store cap before spill.
37+ /// Per stateful operator: in-memory state store cap before spill. Default 5 MiB.
3838 #[ serde( default ) ]
3939 pub operator_state_store_memory_bytes : Option < u64 > ,
4040}
0 commit comments