Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
func New ¶
func New(e *environment.Environment) *Balancer
New builds a Balancer from the environment, sizing its per-partition bookkeeping from the configured partition count.
func (*Balancer) BalanceEagerly ¶
func (x *Balancer) BalanceEagerly()
BalanceEagerly runs a full balance cycle right away. It is registered as the routing table callback when EnableProactiveSyncOnJoin is set, and then runs on every member after each installed routing table and, on the coordinator, after a node-join push, so the proactive primary-to-backup push starts as soon as a table is installed instead of on the next tick. The push itself runs on every cycle, once per partition per installed table as soon as the partition holds data, see pushedSignature, and holds the fragment write-lock for the duration of the network transfer, which blocks concurrent reads of that fragment; that cost is why the flag is opt-in.
func (*Balancer) RegisterHandlers ¶
func (b *Balancer) RegisterHandlers()