Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Balancer ¶ added in v0.10.0
type Balancer struct {
// contains filtered or unexported fields
}
Balancer implements a consistent hashing load balancing strategy.
func NewBalancer ¶
NewBalancer creates a new consistent hashing Balancer instance. It uses the consistent hashing package for better distribution and performance. Each proxy's virtual nodes are scaled by its Weight() to achieve weight-based distribution.
Click to show internal directories.
Click to hide internal directories.