Documentation ¶
Index ¶
- Variables
- type ConsistentHashingLbConfig
- func (*ConsistentHashingLbConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ConsistentHashingLbConfig) GetHashBalanceFactor() *wrappers.UInt32Value
- func (x *ConsistentHashingLbConfig) GetUseHostnameForHashing() bool
- func (*ConsistentHashingLbConfig) ProtoMessage()
- func (x *ConsistentHashingLbConfig) ProtoReflect() protoreflect.Message
- func (x *ConsistentHashingLbConfig) Reset()
- func (x *ConsistentHashingLbConfig) String() string
- func (m *ConsistentHashingLbConfig) Validate() error
- func (m *ConsistentHashingLbConfig) ValidateAll() error
- type ConsistentHashingLbConfigMultiError
- type ConsistentHashingLbConfigValidationError
- func (e ConsistentHashingLbConfigValidationError) Cause() error
- func (e ConsistentHashingLbConfigValidationError) Error() string
- func (e ConsistentHashingLbConfigValidationError) ErrorName() string
- func (e ConsistentHashingLbConfigValidationError) Field() string
- func (e ConsistentHashingLbConfigValidationError) Key() bool
- func (e ConsistentHashingLbConfigValidationError) Reason() string
- type LocalityLbConfig
- func (*LocalityLbConfig) Descriptor() ([]byte, []int)deprecated
- func (m *LocalityLbConfig) GetLocalityConfigSpecifier() isLocalityLbConfig_LocalityConfigSpecifier
- func (x *LocalityLbConfig) GetLocalityWeightedLbConfig() *LocalityLbConfig_LocalityWeightedLbConfig
- func (x *LocalityLbConfig) GetZoneAwareLbConfig() *LocalityLbConfig_ZoneAwareLbConfig
- func (*LocalityLbConfig) ProtoMessage()
- func (x *LocalityLbConfig) ProtoReflect() protoreflect.Message
- func (x *LocalityLbConfig) Reset()
- func (x *LocalityLbConfig) String() string
- func (m *LocalityLbConfig) Validate() error
- func (m *LocalityLbConfig) ValidateAll() error
- type LocalityLbConfigMultiError
- type LocalityLbConfigValidationError
- func (e LocalityLbConfigValidationError) Cause() error
- func (e LocalityLbConfigValidationError) Error() string
- func (e LocalityLbConfigValidationError) ErrorName() string
- func (e LocalityLbConfigValidationError) Field() string
- func (e LocalityLbConfigValidationError) Key() bool
- func (e LocalityLbConfigValidationError) Reason() string
- type LocalityLbConfig_LocalityWeightedLbConfig
- func (*LocalityLbConfig_LocalityWeightedLbConfig) Descriptor() ([]byte, []int)deprecated
- func (*LocalityLbConfig_LocalityWeightedLbConfig) ProtoMessage()
- func (x *LocalityLbConfig_LocalityWeightedLbConfig) ProtoReflect() protoreflect.Message
- func (x *LocalityLbConfig_LocalityWeightedLbConfig) Reset()
- func (x *LocalityLbConfig_LocalityWeightedLbConfig) String() string
- func (m *LocalityLbConfig_LocalityWeightedLbConfig) Validate() error
- func (m *LocalityLbConfig_LocalityWeightedLbConfig) ValidateAll() error
- type LocalityLbConfig_LocalityWeightedLbConfigMultiError
- type LocalityLbConfig_LocalityWeightedLbConfigValidationError
- func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Cause() error
- func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Error() string
- func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) ErrorName() string
- func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Field() string
- func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Key() bool
- func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Reason() string
- type LocalityLbConfig_LocalityWeightedLbConfig_
- type LocalityLbConfig_ZoneAwareLbConfig
- func (*LocalityLbConfig_ZoneAwareLbConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LocalityLbConfig_ZoneAwareLbConfig) GetFailTrafficOnPanic() bool
- func (x *LocalityLbConfig_ZoneAwareLbConfig) GetMinClusterSize() *wrappers.UInt64Value
- func (x *LocalityLbConfig_ZoneAwareLbConfig) GetRoutingEnabled() *v31.Percent
- func (*LocalityLbConfig_ZoneAwareLbConfig) ProtoMessage()
- func (x *LocalityLbConfig_ZoneAwareLbConfig) ProtoReflect() protoreflect.Message
- func (x *LocalityLbConfig_ZoneAwareLbConfig) Reset()
- func (x *LocalityLbConfig_ZoneAwareLbConfig) String() string
- func (m *LocalityLbConfig_ZoneAwareLbConfig) Validate() error
- func (m *LocalityLbConfig_ZoneAwareLbConfig) ValidateAll() error
- type LocalityLbConfig_ZoneAwareLbConfigMultiError
- type LocalityLbConfig_ZoneAwareLbConfigValidationError
- func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Cause() error
- func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Error() string
- func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) ErrorName() string
- func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Field() string
- func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Key() bool
- func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Reason() string
- type LocalityLbConfig_ZoneAwareLbConfig_
- type SlowStartConfig
- func (*SlowStartConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SlowStartConfig) GetAggression() *v3.RuntimeDouble
- func (x *SlowStartConfig) GetMinWeightPercent() *v31.Percent
- func (x *SlowStartConfig) GetSlowStartWindow() *duration.Duration
- func (*SlowStartConfig) ProtoMessage()
- func (x *SlowStartConfig) ProtoReflect() protoreflect.Message
- func (x *SlowStartConfig) Reset()
- func (x *SlowStartConfig) String() string
- func (m *SlowStartConfig) Validate() error
- func (m *SlowStartConfig) ValidateAll() error
- type SlowStartConfigMultiError
- type SlowStartConfigValidationError
- func (e SlowStartConfigValidationError) Cause() error
- func (e SlowStartConfigValidationError) Error() string
- func (e SlowStartConfigValidationError) ErrorName() string
- func (e SlowStartConfigValidationError) Field() string
- func (e SlowStartConfigValidationError) Key() bool
- func (e SlowStartConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_load_balancing_policies_common_v3_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConsistentHashingLbConfig ¶
type ConsistentHashingLbConfig struct { // If set to “true“, the cluster will use hostname instead of the resolved // address as the key to consistently hash to an upstream host. Only valid for StrictDNS clusters with hostnames which resolve to a single IP address. UseHostnameForHashing bool `` /* 129-byte string literal not displayed */ // Configures percentage of average cluster load to bound per upstream host. For example, with a value of 150 // no upstream host will get a load more than 1.5 times the average load of all the hosts in the cluster. // If not specified, the load is not bounded for any upstream host. Typical value for this parameter is between 120 and 200. // Minimum is 100. // // Applies to both Ring Hash and Maglev load balancers. // // This is implemented based on the method described in the paper https://arxiv.org/abs/1608.01350. For the specified // “hash_balance_factor“, requests to any upstream host are capped at “hash_balance_factor/100“ times the average number of requests // across the cluster. When a request arrives for an upstream host that is currently serving at its max capacity, linear probing // is used to identify an eligible host. Further, the linear probe is implemented using a random jump in hosts ring/table to identify // the eligible host (this technique is as described in the paper https://arxiv.org/abs/1908.08762 - the random jump avoids the // cascading overflow effect when choosing the next host in the ring/table). // // If weights are specified on the hosts, they are respected. // // This is an O(N) algorithm, unlike other load balancers. Using a lower “hash_balance_factor“ results in more hosts // being probed, so use a higher value if you require better performance. HashBalanceFactor *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=hash_balance_factor,json=hashBalanceFactor,proto3" json:"hash_balance_factor,omitempty"` // contains filtered or unexported fields }
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
func (*ConsistentHashingLbConfig) Descriptor
deprecated
func (*ConsistentHashingLbConfig) Descriptor() ([]byte, []int)
Deprecated: Use ConsistentHashingLbConfig.ProtoReflect.Descriptor instead.
func (*ConsistentHashingLbConfig) GetHashBalanceFactor ¶
func (x *ConsistentHashingLbConfig) GetHashBalanceFactor() *wrappers.UInt32Value
func (*ConsistentHashingLbConfig) GetUseHostnameForHashing ¶
func (x *ConsistentHashingLbConfig) GetUseHostnameForHashing() bool
func (*ConsistentHashingLbConfig) ProtoMessage ¶
func (*ConsistentHashingLbConfig) ProtoMessage()
func (*ConsistentHashingLbConfig) ProtoReflect ¶
func (x *ConsistentHashingLbConfig) ProtoReflect() protoreflect.Message
func (*ConsistentHashingLbConfig) Reset ¶
func (x *ConsistentHashingLbConfig) Reset()
func (*ConsistentHashingLbConfig) String ¶
func (x *ConsistentHashingLbConfig) String() string
func (*ConsistentHashingLbConfig) Validate ¶
func (m *ConsistentHashingLbConfig) Validate() error
Validate checks the field values on ConsistentHashingLbConfig 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 (*ConsistentHashingLbConfig) ValidateAll ¶
func (m *ConsistentHashingLbConfig) ValidateAll() error
ValidateAll checks the field values on ConsistentHashingLbConfig 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 ConsistentHashingLbConfigMultiError, or nil if none found.
type ConsistentHashingLbConfigMultiError ¶
type ConsistentHashingLbConfigMultiError []error
ConsistentHashingLbConfigMultiError is an error wrapping multiple validation errors returned by ConsistentHashingLbConfig.ValidateAll() if the designated constraints aren't met.
func (ConsistentHashingLbConfigMultiError) AllErrors ¶
func (m ConsistentHashingLbConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsistentHashingLbConfigMultiError) Error ¶
func (m ConsistentHashingLbConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsistentHashingLbConfigValidationError ¶
type ConsistentHashingLbConfigValidationError struct {
// contains filtered or unexported fields
}
ConsistentHashingLbConfigValidationError is the validation error returned by ConsistentHashingLbConfig.Validate if the designated constraints aren't met.
func (ConsistentHashingLbConfigValidationError) Cause ¶
func (e ConsistentHashingLbConfigValidationError) Cause() error
Cause function returns cause value.
func (ConsistentHashingLbConfigValidationError) Error ¶
func (e ConsistentHashingLbConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConsistentHashingLbConfigValidationError) ErrorName ¶
func (e ConsistentHashingLbConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConsistentHashingLbConfigValidationError) Field ¶
func (e ConsistentHashingLbConfigValidationError) Field() string
Field function returns field value.
func (ConsistentHashingLbConfigValidationError) Key ¶
func (e ConsistentHashingLbConfigValidationError) Key() bool
Key function returns key value.
func (ConsistentHashingLbConfigValidationError) Reason ¶
func (e ConsistentHashingLbConfigValidationError) Reason() string
Reason function returns reason value.
type LocalityLbConfig ¶
type LocalityLbConfig struct { // Types that are assignable to LocalityConfigSpecifier: // *LocalityLbConfig_ZoneAwareLbConfig_ // *LocalityLbConfig_LocalityWeightedLbConfig_ LocalityConfigSpecifier isLocalityLbConfig_LocalityConfigSpecifier `protobuf_oneof:"locality_config_specifier"` // contains filtered or unexported fields }
func (*LocalityLbConfig) Descriptor
deprecated
func (*LocalityLbConfig) Descriptor() ([]byte, []int)
Deprecated: Use LocalityLbConfig.ProtoReflect.Descriptor instead.
func (*LocalityLbConfig) GetLocalityConfigSpecifier ¶
func (m *LocalityLbConfig) GetLocalityConfigSpecifier() isLocalityLbConfig_LocalityConfigSpecifier
func (*LocalityLbConfig) GetLocalityWeightedLbConfig ¶
func (x *LocalityLbConfig) GetLocalityWeightedLbConfig() *LocalityLbConfig_LocalityWeightedLbConfig
func (*LocalityLbConfig) GetZoneAwareLbConfig ¶
func (x *LocalityLbConfig) GetZoneAwareLbConfig() *LocalityLbConfig_ZoneAwareLbConfig
func (*LocalityLbConfig) ProtoMessage ¶
func (*LocalityLbConfig) ProtoMessage()
func (*LocalityLbConfig) ProtoReflect ¶
func (x *LocalityLbConfig) ProtoReflect() protoreflect.Message
func (*LocalityLbConfig) Reset ¶
func (x *LocalityLbConfig) Reset()
func (*LocalityLbConfig) String ¶
func (x *LocalityLbConfig) String() string
func (*LocalityLbConfig) Validate ¶
func (m *LocalityLbConfig) Validate() error
Validate checks the field values on LocalityLbConfig 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 (*LocalityLbConfig) ValidateAll ¶
func (m *LocalityLbConfig) ValidateAll() error
ValidateAll checks the field values on LocalityLbConfig 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 LocalityLbConfigMultiError, or nil if none found.
type LocalityLbConfigMultiError ¶
type LocalityLbConfigMultiError []error
LocalityLbConfigMultiError is an error wrapping multiple validation errors returned by LocalityLbConfig.ValidateAll() if the designated constraints aren't met.
func (LocalityLbConfigMultiError) AllErrors ¶
func (m LocalityLbConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LocalityLbConfigMultiError) Error ¶
func (m LocalityLbConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LocalityLbConfigValidationError ¶
type LocalityLbConfigValidationError struct {
// contains filtered or unexported fields
}
LocalityLbConfigValidationError is the validation error returned by LocalityLbConfig.Validate if the designated constraints aren't met.
func (LocalityLbConfigValidationError) Cause ¶
func (e LocalityLbConfigValidationError) Cause() error
Cause function returns cause value.
func (LocalityLbConfigValidationError) Error ¶
func (e LocalityLbConfigValidationError) Error() string
Error satisfies the builtin error interface
func (LocalityLbConfigValidationError) ErrorName ¶
func (e LocalityLbConfigValidationError) ErrorName() string
ErrorName returns error name.
func (LocalityLbConfigValidationError) Field ¶
func (e LocalityLbConfigValidationError) Field() string
Field function returns field value.
func (LocalityLbConfigValidationError) Key ¶
func (e LocalityLbConfigValidationError) Key() bool
Key function returns key value.
func (LocalityLbConfigValidationError) Reason ¶
func (e LocalityLbConfigValidationError) Reason() string
Reason function returns reason value.
type LocalityLbConfig_LocalityWeightedLbConfig ¶
type LocalityLbConfig_LocalityWeightedLbConfig struct {
// contains filtered or unexported fields
}
Configuration for :ref:`locality weighted load balancing <arch_overview_load_balancing_locality_weighted_lb>`
func (*LocalityLbConfig_LocalityWeightedLbConfig) Descriptor
deprecated
func (*LocalityLbConfig_LocalityWeightedLbConfig) Descriptor() ([]byte, []int)
Deprecated: Use LocalityLbConfig_LocalityWeightedLbConfig.ProtoReflect.Descriptor instead.
func (*LocalityLbConfig_LocalityWeightedLbConfig) ProtoMessage ¶
func (*LocalityLbConfig_LocalityWeightedLbConfig) ProtoMessage()
func (*LocalityLbConfig_LocalityWeightedLbConfig) ProtoReflect ¶
func (x *LocalityLbConfig_LocalityWeightedLbConfig) ProtoReflect() protoreflect.Message
func (*LocalityLbConfig_LocalityWeightedLbConfig) Reset ¶
func (x *LocalityLbConfig_LocalityWeightedLbConfig) Reset()
func (*LocalityLbConfig_LocalityWeightedLbConfig) String ¶
func (x *LocalityLbConfig_LocalityWeightedLbConfig) String() string
func (*LocalityLbConfig_LocalityWeightedLbConfig) Validate ¶
func (m *LocalityLbConfig_LocalityWeightedLbConfig) Validate() error
Validate checks the field values on LocalityLbConfig_LocalityWeightedLbConfig 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 (*LocalityLbConfig_LocalityWeightedLbConfig) ValidateAll ¶
func (m *LocalityLbConfig_LocalityWeightedLbConfig) ValidateAll() error
ValidateAll checks the field values on LocalityLbConfig_LocalityWeightedLbConfig 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 LocalityLbConfig_LocalityWeightedLbConfigMultiError, or nil if none found.
type LocalityLbConfig_LocalityWeightedLbConfigMultiError ¶
type LocalityLbConfig_LocalityWeightedLbConfigMultiError []error
LocalityLbConfig_LocalityWeightedLbConfigMultiError is an error wrapping multiple validation errors returned by LocalityLbConfig_LocalityWeightedLbConfig.ValidateAll() if the designated constraints aren't met.
func (LocalityLbConfig_LocalityWeightedLbConfigMultiError) AllErrors ¶
func (m LocalityLbConfig_LocalityWeightedLbConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LocalityLbConfig_LocalityWeightedLbConfigMultiError) Error ¶
func (m LocalityLbConfig_LocalityWeightedLbConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LocalityLbConfig_LocalityWeightedLbConfigValidationError ¶
type LocalityLbConfig_LocalityWeightedLbConfigValidationError struct {
// contains filtered or unexported fields
}
LocalityLbConfig_LocalityWeightedLbConfigValidationError is the validation error returned by LocalityLbConfig_LocalityWeightedLbConfig.Validate if the designated constraints aren't met.
func (LocalityLbConfig_LocalityWeightedLbConfigValidationError) Cause ¶
func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Cause() error
Cause function returns cause value.
func (LocalityLbConfig_LocalityWeightedLbConfigValidationError) Error ¶
func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Error() string
Error satisfies the builtin error interface
func (LocalityLbConfig_LocalityWeightedLbConfigValidationError) ErrorName ¶
func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) ErrorName() string
ErrorName returns error name.
func (LocalityLbConfig_LocalityWeightedLbConfigValidationError) Field ¶
func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Field() string
Field function returns field value.
func (LocalityLbConfig_LocalityWeightedLbConfigValidationError) Key ¶
func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Key() bool
Key function returns key value.
func (LocalityLbConfig_LocalityWeightedLbConfigValidationError) Reason ¶
func (e LocalityLbConfig_LocalityWeightedLbConfigValidationError) Reason() string
Reason function returns reason value.
type LocalityLbConfig_LocalityWeightedLbConfig_ ¶
type LocalityLbConfig_LocalityWeightedLbConfig_ struct { // Enable locality weighted load balancing. LocalityWeightedLbConfig *LocalityLbConfig_LocalityWeightedLbConfig `protobuf:"bytes,2,opt,name=locality_weighted_lb_config,json=localityWeightedLbConfig,proto3,oneof"` }
type LocalityLbConfig_ZoneAwareLbConfig ¶
type LocalityLbConfig_ZoneAwareLbConfig struct { // Configures percentage of requests that will be considered for zone aware routing // if zone aware routing is configured. If not specified, the default is 100%. // * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. // * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`. RoutingEnabled *v31.Percent `protobuf:"bytes,1,opt,name=routing_enabled,json=routingEnabled,proto3" json:"routing_enabled,omitempty"` // Configures minimum upstream cluster size required for zone aware routing // If upstream cluster size is less than specified, zone aware routing is not performed // even if zone aware routing is configured. If not specified, the default is 6. // * :ref:`runtime values <config_cluster_manager_cluster_runtime_zone_routing>`. // * :ref:`Zone aware routing support <arch_overview_load_balancing_zone_aware_routing>`. MinClusterSize *wrappers.UInt64Value `protobuf:"bytes,2,opt,name=min_cluster_size,json=minClusterSize,proto3" json:"min_cluster_size,omitempty"` // If set to true, Envoy will not consider any hosts when the cluster is in :ref:`panic // mode<arch_overview_load_balancing_panic_threshold>`. Instead, the cluster will fail all // requests as if all hosts are unhealthy. This can help avoid potentially overwhelming a // failing service. FailTrafficOnPanic bool `protobuf:"varint,3,opt,name=fail_traffic_on_panic,json=failTrafficOnPanic,proto3" json:"fail_traffic_on_panic,omitempty"` // contains filtered or unexported fields }
Configuration for :ref:`zone aware routing <arch_overview_load_balancing_zone_aware_routing>`.
func (*LocalityLbConfig_ZoneAwareLbConfig) Descriptor
deprecated
func (*LocalityLbConfig_ZoneAwareLbConfig) Descriptor() ([]byte, []int)
Deprecated: Use LocalityLbConfig_ZoneAwareLbConfig.ProtoReflect.Descriptor instead.
func (*LocalityLbConfig_ZoneAwareLbConfig) GetFailTrafficOnPanic ¶
func (x *LocalityLbConfig_ZoneAwareLbConfig) GetFailTrafficOnPanic() bool
func (*LocalityLbConfig_ZoneAwareLbConfig) GetMinClusterSize ¶
func (x *LocalityLbConfig_ZoneAwareLbConfig) GetMinClusterSize() *wrappers.UInt64Value
func (*LocalityLbConfig_ZoneAwareLbConfig) GetRoutingEnabled ¶
func (x *LocalityLbConfig_ZoneAwareLbConfig) GetRoutingEnabled() *v31.Percent
func (*LocalityLbConfig_ZoneAwareLbConfig) ProtoMessage ¶
func (*LocalityLbConfig_ZoneAwareLbConfig) ProtoMessage()
func (*LocalityLbConfig_ZoneAwareLbConfig) ProtoReflect ¶
func (x *LocalityLbConfig_ZoneAwareLbConfig) ProtoReflect() protoreflect.Message
func (*LocalityLbConfig_ZoneAwareLbConfig) Reset ¶
func (x *LocalityLbConfig_ZoneAwareLbConfig) Reset()
func (*LocalityLbConfig_ZoneAwareLbConfig) String ¶
func (x *LocalityLbConfig_ZoneAwareLbConfig) String() string
func (*LocalityLbConfig_ZoneAwareLbConfig) Validate ¶
func (m *LocalityLbConfig_ZoneAwareLbConfig) Validate() error
Validate checks the field values on LocalityLbConfig_ZoneAwareLbConfig 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 (*LocalityLbConfig_ZoneAwareLbConfig) ValidateAll ¶
func (m *LocalityLbConfig_ZoneAwareLbConfig) ValidateAll() error
ValidateAll checks the field values on LocalityLbConfig_ZoneAwareLbConfig 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 LocalityLbConfig_ZoneAwareLbConfigMultiError, or nil if none found.
type LocalityLbConfig_ZoneAwareLbConfigMultiError ¶
type LocalityLbConfig_ZoneAwareLbConfigMultiError []error
LocalityLbConfig_ZoneAwareLbConfigMultiError is an error wrapping multiple validation errors returned by LocalityLbConfig_ZoneAwareLbConfig.ValidateAll() if the designated constraints aren't met.
func (LocalityLbConfig_ZoneAwareLbConfigMultiError) AllErrors ¶
func (m LocalityLbConfig_ZoneAwareLbConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LocalityLbConfig_ZoneAwareLbConfigMultiError) Error ¶
func (m LocalityLbConfig_ZoneAwareLbConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LocalityLbConfig_ZoneAwareLbConfigValidationError ¶
type LocalityLbConfig_ZoneAwareLbConfigValidationError struct {
// contains filtered or unexported fields
}
LocalityLbConfig_ZoneAwareLbConfigValidationError is the validation error returned by LocalityLbConfig_ZoneAwareLbConfig.Validate if the designated constraints aren't met.
func (LocalityLbConfig_ZoneAwareLbConfigValidationError) Cause ¶
func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Cause() error
Cause function returns cause value.
func (LocalityLbConfig_ZoneAwareLbConfigValidationError) Error ¶
func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Error() string
Error satisfies the builtin error interface
func (LocalityLbConfig_ZoneAwareLbConfigValidationError) ErrorName ¶
func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) ErrorName() string
ErrorName returns error name.
func (LocalityLbConfig_ZoneAwareLbConfigValidationError) Field ¶
func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Field() string
Field function returns field value.
func (LocalityLbConfig_ZoneAwareLbConfigValidationError) Key ¶
func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Key() bool
Key function returns key value.
func (LocalityLbConfig_ZoneAwareLbConfigValidationError) Reason ¶
func (e LocalityLbConfig_ZoneAwareLbConfigValidationError) Reason() string
Reason function returns reason value.
type LocalityLbConfig_ZoneAwareLbConfig_ ¶
type LocalityLbConfig_ZoneAwareLbConfig_ struct { // Configuration for local zone aware load balancing. ZoneAwareLbConfig *LocalityLbConfig_ZoneAwareLbConfig `protobuf:"bytes,1,opt,name=zone_aware_lb_config,json=zoneAwareLbConfig,proto3,oneof"` }
type SlowStartConfig ¶
type SlowStartConfig struct { // Represents the size of slow start window. // If set, the newly created host remains in slow start mode starting from its creation time // for the duration of slow start window. SlowStartWindow *duration.Duration `protobuf:"bytes,1,opt,name=slow_start_window,json=slowStartWindow,proto3" json:"slow_start_window,omitempty"` // This parameter controls the speed of traffic increase over the slow start window. Defaults to 1.0, // so that endpoint would get linearly increasing amount of traffic. // When increasing the value for this parameter, the speed of traffic ramp-up increases non-linearly. // The value of aggression parameter should be greater than 0.0. // By tuning the parameter, is possible to achieve polynomial or exponential shape of ramp-up curve. // // During slow start window, effective weight of an endpoint would be scaled with time factor and aggression: // “new_weight = weight * max(min_weight_percent, time_factor ^ (1 / aggression))“, // where “time_factor=(time_since_start_seconds / slow_start_time_seconds)“. // // As time progresses, more and more traffic would be sent to endpoint, which is in slow start window. // Once host exits slow start, time_factor and aggression no longer affect its weight. Aggression *v3.RuntimeDouble `protobuf:"bytes,2,opt,name=aggression,proto3" json:"aggression,omitempty"` // Configures the minimum percentage of origin weight that avoids too small new weight, // which may cause endpoints in slow start mode receive no traffic in slow start window. // If not specified, the default is 10%. MinWeightPercent *v31.Percent `protobuf:"bytes,3,opt,name=min_weight_percent,json=minWeightPercent,proto3" json:"min_weight_percent,omitempty"` // contains filtered or unexported fields }
Configuration for :ref:`slow start mode <arch_overview_load_balancing_slow_start>`.
func (*SlowStartConfig) Descriptor
deprecated
func (*SlowStartConfig) Descriptor() ([]byte, []int)
Deprecated: Use SlowStartConfig.ProtoReflect.Descriptor instead.
func (*SlowStartConfig) GetAggression ¶
func (x *SlowStartConfig) GetAggression() *v3.RuntimeDouble
func (*SlowStartConfig) GetMinWeightPercent ¶
func (x *SlowStartConfig) GetMinWeightPercent() *v31.Percent
func (*SlowStartConfig) GetSlowStartWindow ¶
func (x *SlowStartConfig) GetSlowStartWindow() *duration.Duration
func (*SlowStartConfig) ProtoMessage ¶
func (*SlowStartConfig) ProtoMessage()
func (*SlowStartConfig) ProtoReflect ¶
func (x *SlowStartConfig) ProtoReflect() protoreflect.Message
func (*SlowStartConfig) Reset ¶
func (x *SlowStartConfig) Reset()
func (*SlowStartConfig) String ¶
func (x *SlowStartConfig) String() string
func (*SlowStartConfig) Validate ¶
func (m *SlowStartConfig) Validate() error
Validate checks the field values on SlowStartConfig 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 (*SlowStartConfig) ValidateAll ¶
func (m *SlowStartConfig) ValidateAll() error
ValidateAll checks the field values on SlowStartConfig 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 SlowStartConfigMultiError, or nil if none found.
type SlowStartConfigMultiError ¶
type SlowStartConfigMultiError []error
SlowStartConfigMultiError is an error wrapping multiple validation errors returned by SlowStartConfig.ValidateAll() if the designated constraints aren't met.
func (SlowStartConfigMultiError) AllErrors ¶
func (m SlowStartConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SlowStartConfigMultiError) Error ¶
func (m SlowStartConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SlowStartConfigValidationError ¶
type SlowStartConfigValidationError struct {
// contains filtered or unexported fields
}
SlowStartConfigValidationError is the validation error returned by SlowStartConfig.Validate if the designated constraints aren't met.
func (SlowStartConfigValidationError) Cause ¶
func (e SlowStartConfigValidationError) Cause() error
Cause function returns cause value.
func (SlowStartConfigValidationError) Error ¶
func (e SlowStartConfigValidationError) Error() string
Error satisfies the builtin error interface
func (SlowStartConfigValidationError) ErrorName ¶
func (e SlowStartConfigValidationError) ErrorName() string
ErrorName returns error name.
func (SlowStartConfigValidationError) Field ¶
func (e SlowStartConfigValidationError) Field() string
Field function returns field value.
func (SlowStartConfigValidationError) Key ¶
func (e SlowStartConfigValidationError) Key() bool
Key function returns key value.
func (SlowStartConfigValidationError) Reason ¶
func (e SlowStartConfigValidationError) Reason() string
Reason function returns reason value.