maglevv3

package
v0.0.0-...-a9b86d8 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

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

func (*Maglev) Validate

func (m *Maglev) Validate() error

Validate checks the field values on Maglev with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Maglev) ValidateAll

func (m *Maglev) ValidateAll() error

ValidateAll checks the field values on Maglev with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MaglevMultiError, or nil if none found.

type MaglevMultiError

type MaglevMultiError []error

MaglevMultiError is an error wrapping multiple validation errors returned by Maglev.ValidateAll() if the designated constraints aren't met.

func (MaglevMultiError) AllErrors

func (m MaglevMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MaglevMultiError) Error

func (m MaglevMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MaglevValidationError

type MaglevValidationError struct {
	// contains filtered or unexported fields
}

MaglevValidationError is the validation error returned by Maglev.Validate if the designated constraints aren't met.

func (MaglevValidationError) Cause

func (e MaglevValidationError) Cause() error

Cause function returns cause value.

func (MaglevValidationError) Error

func (e MaglevValidationError) Error() string

Error satisfies the builtin error interface

func (MaglevValidationError) ErrorName

func (e MaglevValidationError) ErrorName() string

ErrorName returns error name.

func (MaglevValidationError) Field

func (e MaglevValidationError) Field() string

Field function returns field value.

func (MaglevValidationError) Key

func (e MaglevValidationError) Key() bool

Key function returns key value.

func (MaglevValidationError) Reason

func (e MaglevValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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