loadbalancer

package
v0.0.0-...-f2677c2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 ApplyLocalityLBSetting

func ApplyLocalityLBSetting(
	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