Documentation ¶
Overview ¶
Package ringhash implements the ringhash balancer.
Index ¶
Constants ¶
View Source
const Name = "ring_hash_experimental"
Name is the name of the ring_hash balancer.
Variables ¶
This section is empty.
Functions ¶
func GetRequestHashForTesting ¶
GetRequestHashForTesting returns the request hash in the context; to be used for testing only.
Types ¶
type LBConfig ¶
type LBConfig struct { serviceconfig.LoadBalancingConfig `json:"-"` MinRingSize uint64 `json:"minRingSize,omitempty"` MaxRingSize uint64 `json:"maxRingSize,omitempty"` }
LBConfig is the balancer config for ring_hash balancer.
Click to show internal directories.
Click to hide internal directories.