Documentation ¶
Overview ¶
Package wrrlocality provides an implementation of the wrr locality LB policy, as defined in A52 - xDS Custom LB Policies.
Index ¶
Constants ¶
View Source
const Name = "xds_wrr_locality_experimental"
Name is the name of wrr_locality balancer.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrInfo ¶
type AddrInfo struct {
LocalityWeight uint32
}
AddrInfo is the locality weight of the locality an address is a part of.
type LBConfig ¶
type LBConfig struct { serviceconfig.LoadBalancingConfig `json:"-"` // ChildPolicy is the config for the child policy. ChildPolicy *internalserviceconfig.BalancerConfig `json:"childPolicy,omitempty"` }
LBConfig is the config for the wrr locality balancer.
Click to show internal directories.
Click to hide internal directories.