Skip to main content

Module backpressure

Module backpressure 

Source
Expand description

Global backpressure management for the runtime.

This module calculates and broadcasts backpressure signals to all connected clients. Backpressure is computed from multiple factors:

  • Total queue depth across all modules
  • CPU and memory usage
  • Active client count
  • Module-specific quotas

Structs§

BackpressureState
Global backpressure state shared across the runtime.
ModuleQuota
Per-module quota configuration.
ModuleResources
Per-module resource tracking and quota enforcement.
ResourceManager
Global resource manager for the runtime.
ResourceManagerStats
Statistics about resource manager state.

Constants§

BP_CRITICAL_THRESHOLD
BP_HIGH_THRESHOLD
BP_LOW_THRESHOLD
Backpressure thresholds for different congestion levels.
BP_MEDIUM_THRESHOLD