Skip to main content

Module bandwidth_allocator

Module bandwidth_allocator 

Source
Expand description

Peer bandwidth allocator using weighted max-min fairness.

Allocates outbound bandwidth fairly across peers with per-peer minimum guarantees and hard caps. Supports three allocation strategies: EqualShare, WeightedFair, and MaxMinFair.

Structs§

AllocationStats
Aggregate statistics produced by PeerBandwidthAllocator::stats.
PeerAllocation
Per-peer allocation record.
PeerBandwidthAllocator
Allocates outbound bandwidth fairly across peers.

Enums§

AllocationStrategy
Strategy used by PeerBandwidthAllocator when distributing bandwidth.