Documentation ¶
Index ¶
- Variables
- type Dlb
- func (*Dlb) Descriptor() ([]byte, []int)deprecated
- func (x *Dlb) GetFallbackPolicy() Dlb_FallbackPolicy
- func (x *Dlb) GetId() uint32
- func (x *Dlb) GetMaxRetries() uint32
- func (*Dlb) ProtoMessage()
- func (x *Dlb) ProtoReflect() protoreflect.Message
- func (x *Dlb) Reset()
- func (x *Dlb) String() string
- func (m *Dlb) Validate() error
- func (m *Dlb) ValidateAll() error
- type DlbMultiError
- type DlbValidationError
- type Dlb_FallbackPolicy
- func (Dlb_FallbackPolicy) Descriptor() protoreflect.EnumDescriptor
- func (x Dlb_FallbackPolicy) Enum() *Dlb_FallbackPolicy
- func (Dlb_FallbackPolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x Dlb_FallbackPolicy) Number() protoreflect.EnumNumber
- func (x Dlb_FallbackPolicy) String() string
- func (Dlb_FallbackPolicy) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Dlb_FallbackPolicy_name = map[int32]string{ 0: "None", 1: "NopConnectionBalance", 2: "ExactConnectionBalance", } Dlb_FallbackPolicy_value = map[string]int32{ "None": 0, "NopConnectionBalance": 1, "ExactConnectionBalance": 2, } )
Enum value maps for Dlb_FallbackPolicy.
var File_contrib_envoy_extensions_network_connection_balance_dlb_v3alpha_dlb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Dlb ¶
type Dlb struct { // The ID of the Dlb hardware, start from 0. // If not specified, use the first available device as default. Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Maximum number of retries when sending to DLB device fails. // No retry as default. MaxRetries uint32 `protobuf:"varint,2,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"` FallbackPolicy Dlb_FallbackPolicy `` /* 184-byte string literal not displayed */ // contains filtered or unexported fields }
The Dlb is a hardware managed system of queues and arbiters connecting producers and consumers. It is a PCIE device in the CPU package. It interacts with software running on cores and potentially other devices. The Dlb implements the following balancing features:
- Lock-free multi-producer/multi-consumer operation. - Multiple priorities for varying traffic types. - Various distribution schemes.
Dlb connection balancer uses Dlb hardware to balance connections, and can significantly reduce latency.
As the Dlb connection balancer provides assistance from dedicated Dlb hardware, it can be used for a proxy with a large number of connections (e.g., a gateway).
func (*Dlb) Descriptor
deprecated
func (*Dlb) GetFallbackPolicy ¶ added in v0.12.0
func (x *Dlb) GetFallbackPolicy() Dlb_FallbackPolicy
func (*Dlb) GetMaxRetries ¶ added in v0.11.0
func (*Dlb) ProtoMessage ¶
func (*Dlb) ProtoMessage()
func (*Dlb) ProtoReflect ¶
func (x *Dlb) ProtoReflect() protoreflect.Message
func (*Dlb) Validate ¶
Validate checks the field values on Dlb 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 (*Dlb) ValidateAll ¶
ValidateAll checks the field values on Dlb 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 DlbMultiError, or nil if none found.
type DlbMultiError ¶
type DlbMultiError []error
DlbMultiError is an error wrapping multiple validation errors returned by Dlb.ValidateAll() if the designated constraints aren't met.
func (DlbMultiError) AllErrors ¶
func (m DlbMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DlbMultiError) Error ¶
func (m DlbMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DlbValidationError ¶
type DlbValidationError struct {
// contains filtered or unexported fields
}
DlbValidationError is the validation error returned by Dlb.Validate if the designated constraints aren't met.
func (DlbValidationError) Cause ¶
func (e DlbValidationError) Cause() error
Cause function returns cause value.
func (DlbValidationError) Error ¶
func (e DlbValidationError) Error() string
Error satisfies the builtin error interface
func (DlbValidationError) ErrorName ¶
func (e DlbValidationError) ErrorName() string
ErrorName returns error name.
func (DlbValidationError) Field ¶
func (e DlbValidationError) Field() string
Field function returns field value.
func (DlbValidationError) Key ¶
func (e DlbValidationError) Key() bool
Key function returns key value.
func (DlbValidationError) Reason ¶
func (e DlbValidationError) Reason() string
Reason function returns reason value.
type Dlb_FallbackPolicy ¶ added in v0.12.0
type Dlb_FallbackPolicy int32
The fallback policy if any error occurs. The default policy is None.
const ( // No fallback policy. Dlb_None Dlb_FallbackPolicy = 0 // Fall back to Nop Connection Balance. Dlb_NopConnectionBalance Dlb_FallbackPolicy = 1 // Fall back to Exact Connection Balance. Dlb_ExactConnectionBalance Dlb_FallbackPolicy = 2 )
func (Dlb_FallbackPolicy) Descriptor ¶ added in v0.12.0
func (Dlb_FallbackPolicy) Descriptor() protoreflect.EnumDescriptor
func (Dlb_FallbackPolicy) Enum ¶ added in v0.12.0
func (x Dlb_FallbackPolicy) Enum() *Dlb_FallbackPolicy
func (Dlb_FallbackPolicy) EnumDescriptor
deprecated
added in
v0.12.0
func (Dlb_FallbackPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use Dlb_FallbackPolicy.Descriptor instead.
func (Dlb_FallbackPolicy) Number ¶ added in v0.12.0
func (x Dlb_FallbackPolicy) Number() protoreflect.EnumNumber
func (Dlb_FallbackPolicy) String ¶ added in v0.12.0
func (x Dlb_FallbackPolicy) String() string
func (Dlb_FallbackPolicy) Type ¶ added in v0.12.0
func (Dlb_FallbackPolicy) Type() protoreflect.EnumType