Skip to main content

process_query_pool

Function process_query_pool 

Source
pub fn process_query_pool() -> Option<&'static Arc<dyn MemoryPool>>
Expand description

The one query memory pool for this process, sized by krishiv_common::ExecutorCapacity from the cgroup limit.

None when execution memory is unbounded: no cgroup limit (bare metal or an unconstrained container), or an explicit KRISHIV_QUERY_MEMORY_LIMIT_BYTES=0.

Built once. Every engine that does not carry an explicit per-job limit draws on it, so the total execution memory of the process is this number regardless of how many engines exist.