iwrr

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL