loadbalancer

package
v0.0.0-...-b33cfc3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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