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
- func SelectAvailableInstanceSetFromCriteria(criteria *loadbalancer.Criteria, inputInstances model.ServiceInstances) (*model.InstanceSet, error)
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+半开实例
func SelectAvailableInstanceSetFromCriteria ¶ added in v1.6.0
func SelectAvailableInstanceSetFromCriteria(criteria *loadbalancer.Criteria, inputInstances model.ServiceInstances) (*model.InstanceSet, error)
SelectAvailableInstanceSetFromCriteria select available instance from criteria
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.