Documentation ¶
Index ¶
- func CalcHashValue(criteria *loadbalancer.Criteria, hashFunc hash.HashFuncWithSeed) (uint64, error)
- func CalcHashValueWithSeed(criteria *loadbalancer.Criteria, hashFunc hash.HashFuncWithSeed, seed uint32) (uint64, error)
- func SelectAvailableInstanceSet(clsValue *model.ClusterValue, hasLimitedInstances bool, includeHalfOpen bool) *model.InstanceSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcHashValue ¶
func CalcHashValue(criteria *loadbalancer.Criteria, hashFunc hash.HashFuncWithSeed) (uint64, error)
计算hash值
func CalcHashValueWithSeed ¶
func CalcHashValueWithSeed( criteria *loadbalancer.Criteria, hashFunc hash.HashFuncWithSeed, seed uint32) (uint64, error)
计算hash值
func SelectAvailableInstanceSet ¶
func SelectAvailableInstanceSet(clsValue *model.ClusterValue, hasLimitedInstances bool, includeHalfOpen bool) *model.InstanceSet
选择可用实例集合 优先选择健康(close以及存在半开配额实例) 如果不满足健康,则选择close+半开实例
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.