loadbalance

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 119

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWeight

func GetWeight(invoker protocol.Invoker, invocation protocol.Invocation) int64

GetWeight gets weight for load balance strategy

Types

type LoadBalance

type LoadBalance interface {
	Select([]protocol.Invoker, protocol.Invocation) protocol.Invoker
}

Directories

Path Synopsis
Package consistenthashing implements ConsistentHash load balance strategy.
Package consistenthashing implements ConsistentHash load balance strategy.
Package leastactive implements LeastActive load balance strategy.
Package leastactive implements LeastActive load balance strategy.
Package leastactive implements LeastActive load balance strategy.
Package leastactive implements LeastActive load balance strategy.
Package p2c implements p2c load balance strategy.
Package p2c implements p2c load balance strategy.
Package random implements Random load balance strategy.
Package random implements Random load balance strategy.
Package roundrobin implements RoundRobin load balance strategy.
Package roundrobin implements RoundRobin load balance strategy.

Jump to

Keyboard shortcuts

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