Expand description
Global runtimes
Macrosยง
- define_
global_ ๐runtime_ spawn - define_
scheduled_ ๐spawn - define_
spawn ๐
Structsยง
- Config
Runtimes ๐ - Global
Runtimes ๐ - Runtime
Options - The options for the global runtimes.
- Workload
Scheduler Options - Experimental options for sharing Tokio capacity between query and write workloads.
Constantsยง
- COMPACT_
WORKERS ๐ - GLOBAL_
WORKERS ๐ - HB_
WORKERS ๐ - MIN_
RUNTIME_ ๐THREADS - The minimum number of worker threads for runtimes sized by CPU count. A single-threaded runtime can easily deadlock in async code.
- QUERY_
TASK_ ๐CLASS - WRITE_
TASK_ ๐CLASS
Staticsยง
- CONFIG_
RUNTIMES ๐ - GLOBAL_
RUNTIMES ๐ - START ๐
Functionsยง
- block_
on_ compact - Run a future to complete in
compactthread pool. - block_
on_ global - Run a future to complete in
globalthread pool. - block_
on_ hb - Run a future to complete in
hbthread pool. - block_
on_ ingest - Run a future to complete in
ingestthread pool. - block_
on_ query - Run a future to complete in
querythread pool. - compact_
runtime - Returns the global
compactthread pool. - create_
compact_ ๐runtime - create_
runtime - create_
workload_ ๐scheduler - global_
runtime - Returns the global
globalthread pool. - hb_
runtime - Returns the global
hbthread pool. - ingest_
runtime - Returns the global
ingestthread pool. - init_
common_ ๐runtimes - init_
datanode_ runtimes - Initialize runtimes for a datanode process.
- init_
global_ runtimes - Initialize runtimes for frontend, metasrv, and flownode processes.
- init_
standalone_ runtimes - Initialize runtimes for a standalone process.
- query_
runtime - Returns the global
querythread pool. - set_
workload_ scheduler_ enabled - Enables or disables the experimental workload scheduler for new spawn
submissions. Returns
falsewhen no scheduler was constructed at startup. - set_
workload_ scheduler_ weights - Sets the query and write weights atomically. Returns
falsewhen no scheduler was constructed at startup. - spawn_
blocking_ compact - Run the blocking operation in
compactthread pool. - spawn_
blocking_ global - Run the blocking operation in
globalthread pool. - spawn_
blocking_ hb - Run the blocking operation in
hbthread pool. - spawn_
blocking_ ingest - Run the blocking operation in
ingestthread pool. - spawn_
blocking_ query - Run the blocking operation in
querythread pool. - spawn_
compact - Spawn a future and execute it in
compactthread pool. - spawn_
global - Spawn a future and execute it in
globalthread pool. - spawn_
hb - Spawn a future and execute it in
hbthread pool. - spawn_
ingest - Spawn a future and execute it in
ingestthread pool. - spawn_
query - Spawn a future and execute it in
querythread pool. - workload_
scheduler_ enabled - Returns whether the experimental workload scheduler is currently enabled.
Returns
falsewhen no scheduler was constructed at startup. - workload_
scheduler_ stats - Returns scheduler counters when the experimental workload scheduler was constructed at startup, including while it is dynamically disabled.