common

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcHashValue

func CalcHashValue(criteria *loadbalancer.Criteria, hashFunc hash.HashFuncWithSeed) (uint64, error)

CalcHashValue 计算hash值

func CalcHashValueWithSeed

func CalcHashValueWithSeed(
	criteria *loadbalancer.Criteria, hashFunc hash.HashFuncWithSeed, seed uint32) (uint64, error)

CalcHashValueWithSeed 计算hash值

func SelectAvailableInstanceSet

func SelectAvailableInstanceSet(clsValue *model.ClusterValue, hasLimitedInstances bool,
	includeHalfOpen bool) *model.InstanceSet

SelectAvailableInstanceSet select available instance set 选择可用实例集合 优先选择健康(close以及存在半开配额实例) 如果不满足健康,则选择close+半开实例

Types

This section is empty.

Jump to

Keyboard shortcuts

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