Documentation ¶
Overview ¶
Package iwrr implements Interleaved Weighted Round Robin load balance strategy. Interleaved Weighted Round Robin: https://en.wikipedia.org/wiki/Weighted_round_robin#Interleaved_WRR It needs O(n log maxWeight) time and O(n) memory to initialize and O(1) time to generate a random number.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterleavedweightedRoundRobin ¶
func NewInterleavedweightedRoundRobin(invokers []protocol.Invoker, invocation protocol.Invocation) *interleavedweightedRoundRobin
func NewIwrrQueue ¶
func NewIwrrQueue() *iwrrQueue
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.