Documentation ¶
Overview ¶
packages used for load balancer setting
Index ¶
Constants ¶
View Source
const (
FailoverPriorityLabelDefaultSeparator = '='
)
Variables ¶
This section is empty.
Functions ¶
func ApplyLocalityLoadBalancer ¶
func ApplyLocalityLoadBalancer( loadAssignment *endpoint.ClusterLoadAssignment, wrappedLocalityLbEndpoints []*WrappedLocalityLbEndpoints, locality *core.Locality, proxyLabels map[string]string, localityLB *v1alpha3.LocalityLoadBalancerSetting, enableFailover bool, )
func GetLocalityLbSetting ¶
func GetLocalityLbSetting( mesh *v1alpha3.LocalityLoadBalancerSetting, destrule *v1alpha3.LocalityLoadBalancerSetting, ) *v1alpha3.LocalityLoadBalancerSetting
Types ¶
type WrappedLocalityLbEndpoints ¶
type WrappedLocalityLbEndpoints struct { IstioEndpoints []*model.IstioEndpoint LocalityLbEndpoints *endpoint.LocalityLbEndpoints }
WrappedLocalityLbEndpoints contain an envoy LocalityLbEndpoints and the original IstioEndpoints used to generate it. It is used to do failover priority label match with proxy labels.
Click to show internal directories.
Click to hide internal directories.