Skip to main content

Module requests_scheduler

Module requests_scheduler 

Source
Expand description

This module manages communication with validator nodes, including load balancing, request deduplication, caching, and performance tracking.

Structs§

RequestsScheduler
Manages a pool of validator nodes with intelligent load balancing and performance tracking.
RequestsSchedulerConfig
Configuration for the RequestsScheduler.
ScoringWeights
Configurable weights for the scoring algorithm.

Constants§

ALPHA_SMOOTHING_FACTOR
Default smoothing factor for the Exponential Moving Averages of latency.
CACHE_MAX_SIZE
Default maximum number of entries in the cache.
CACHE_TTL_MS
Default time-to-live for cached responses, in milliseconds.
MAX_ACCEPTED_LATENCY_MS
Default maximum expected latency in milliseconds, used for score normalization.
MAX_IN_FLIGHT_REQUESTS
Default maximum number of requests allowed to be in flight at once.
MAX_REQUEST_TTL_MS
Default maximum latency for an in-flight request before we stop deduplicating it, in milliseconds.
STAGGERED_DELAY_MS
Default delay in milliseconds between starting requests to different peers.