Module stats

Source

Structsยง

Stats ๐Ÿ”’
Per-worker statistics. This is used for both tuning the scheduler and reporting runtime-level metrics/stats.

Constantsยง

MAX_TASKS_POLLED_PER_GLOBAL_QUEUE_INTERVAL ๐Ÿ”’
Max value for the global queue interval. This is 2x the previous default
TARGET_GLOBAL_QUEUE_INTERVAL ๐Ÿ”’
Ideally, we wouldnโ€™t go above this, value is plucked from thin air.
TARGET_TASKS_POLLED_PER_GLOBAL_QUEUE_INTERVAL ๐Ÿ”’
This is the previous default
TASK_POLL_TIME_EWMA_ALPHA ๐Ÿ”’
How to weigh each individual poll time, value is plucked from thin air.