pickfirstleaf

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Overview

Package pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented.

Experimental

Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Name is the name of the pick_first_leaf balancer.
	// It is changed to "pick_first" in init() if this balancer is to be
	// registered as the default pickfirst.
	Name = "pick_first_leaf"
)

Functions

func EnableHealthListener added in v1.69.0

func EnableHealthListener(state resolver.State) resolver.State

EnableHealthListener updates the state to configure pickfirst for using a generic health listener.

func IsManagedByPickfirst added in v1.70.0

func IsManagedByPickfirst(addr resolver.Address) bool

IsManagedByPickfirst returns whether an address belongs to a SubConn managed by the pickfirst LB policy. TODO: https://github.com/grpc/grpc-go/issues/7915 - This is a hack to disable outlier_detection via the with connectivity listener when using pick_first. Once Dualstack changes are complete, all SubConns will be created by pick_first and outlier detection will only use the health listener for ejection. This hack can then be removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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