Expand description
This module manages communication with validator nodes, including load balancing, request deduplication, caching, and performance tracking.
Structs§
- Requests
Scheduler - Manages a pool of validator nodes with intelligent load balancing and performance tracking.
- Requests
Scheduler Config - Configuration for the
RequestsScheduler. - Scoring
Weights - 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.