maglevv3

package
v1.33.0-20240426201503... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_load_balancing_policies_maglev_v3_maglev_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Maglev

type Maglev struct {

	// The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee.
	// Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same
	// upstream as it was before. Increasing the table size reduces the amount of disruption.
	// The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
	TableSize *wrapperspb.UInt64Value `protobuf:"bytes,1,opt,name=table_size,json=tableSize,proto3" json:"table_size,omitempty"`
	// Common configuration for hashing-based load balancing policies.
	ConsistentHashingLbConfig *v3.ConsistentHashingLbConfig `` /* 140-byte string literal not displayed */
	// Enable locality weighted load balancing for maglev lb explicitly.
	LocalityWeightedLbConfig *v3.LocalityLbConfig_LocalityWeightedLbConfig `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

This configuration allows the built-in Maglev LB policy to be configured via the LB policy extension point. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` and :ref:`Maglev<arch_overview_load_balancing_types_maglev>` for more information.

func (*Maglev) Descriptor deprecated

func (*Maglev) Descriptor() ([]byte, []int)

Deprecated: Use Maglev.ProtoReflect.Descriptor instead.

func (*Maglev) GetConsistentHashingLbConfig

func (x *Maglev) GetConsistentHashingLbConfig() *v3.ConsistentHashingLbConfig

func (*Maglev) GetLocalityWeightedLbConfig

func (x *Maglev) GetLocalityWeightedLbConfig() *v3.LocalityLbConfig_LocalityWeightedLbConfig

func (*Maglev) GetTableSize

func (x *Maglev) GetTableSize() *wrapperspb.UInt64Value

func (*Maglev) ProtoMessage

func (*Maglev) ProtoMessage()

func (*Maglev) ProtoReflect

func (x *Maglev) ProtoReflect() protoreflect.Message

func (*Maglev) Reset

func (x *Maglev) Reset()

func (*Maglev) String

func (x *Maglev) String() string

Jump to

Keyboard shortcuts

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