balancer

package
v1.58.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const MinConnectBalanceName = "customize_min_connect"
View Source
const MinRespTimeBalanceName = "customize_min_resp_time"
View Source
const RandomWeightedRobinBalanceName = "customize_random_weighted_round_robin"
View Source
const RoundRobinBalanceName = "customize_round_robin"
View Source
const WeightedRobinBalanceName = "customize_weighted_round_robin"

Variables

This section is empty.

Functions

func RegisterMcBalance

func RegisterMcBalance(healthCheck bool)

func RegisterMrtBalance

func RegisterMrtBalance(healthCheck bool)

func RegisterRRBalance

func RegisterRRBalance(healthCheck bool)

func RegisterRWRRBalance

func RegisterRWRRBalance(healthCheck bool)

func RegisterWRRBalance

func RegisterWRRBalance(healthCheck bool)

Types

type Config

type Config struct {
	// HealthCheck indicates whether health checking should be enabled for this specific balancer.
	HealthCheck bool

	// `attributes` is stripped from the keys of this map (the addresses)
	StripAttributes bool
}

Config contains the config info about the base balancer builder.

Jump to

Keyboard shortcuts

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