package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
DisableRebalancing disables all rebalancing operations within the balancer.
MaxConcurrentRebalances defines the maximum number of concurrent rebalance operations for the balancer.
NewBalancer constructs a new Balancer instance that is responsible for load balancing SQL connections within the proxy.
NewConnTracker returns a new instance of the connection tracker.
NewMetrics instantiates the metrics holder for balancer monitoring.
NewServerAssignment returns a new instance of ServerAssignment.
NoRebalanceLoop disables the rebalance loop within the balancer.
RebalanceDelay specifies the minimum amount of time that must elapse between attempts to rebalance a given tenant.
RebalanceRate defines the rate of rebalancing across pods.
TimeSource defines the time source's behavior for the balancer.
# Variables
ErrNoAvailablePods is an error that indicates that no pods are available for selection.
# Structs
Balancer handles load balancing of SQL connections within the proxy.
ConnTracker tracks all connection handles associated with each tenant, and handles are grouped by SQL pods.
Metrics contains pointers to the metrics for monitoring balancer-related operations.
ServerAssignment represents an assignment to a SQL pod.
# Interfaces
ConnectionHandle corresponds to the connection's handle, which will always be instances of the forwarder.
# Type aliases
Option defines an option that can be passed to NewBalancer in order to control its behavior.