loadbalance

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 118

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 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