Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
type Balancer struct {
// contains filtered or unexported fields
}
Balancer is a simple cockroachdb load balancer with automatic node detection.
func (*Balancer) ChooseNode ¶
ChooseNode returns an active database node while doing simple round robin load balancing.
func (*Balancer) GetLiveNodes ¶
GetLiveNodes returns the current live node list.
func (*Balancer) GetNodeCount ¶ added in v0.1.2
GetNodeCount returns the current live node count.
Click to show internal directories.
Click to hide internal directories.