Documentation ¶
Index ¶
- Variables
- type Dlb
- func (*Dlb) Descriptor() ([]byte, []int)deprecated
- 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
Constants ¶
This section is empty.
Variables ¶
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"` // 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) GetMaxRetries ¶
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.