balancer

package
v0.21.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ALLOCATION = 1000000

To stick with integer arithmetic, use 1,000,000 as the full load

Variables

This section is empty.

Functions

This section is empty.

Types

type TabletBalancer

type TabletBalancer interface {
	// Pick is the main entry point to the balancer. Returns the best tablet out of the list
	// for a given query to maintain the desired balanced allocation over multiple executions.
	Pick(target *querypb.Target, tablets []*discovery.TabletHealth) *discovery.TabletHealth

	// DebugHandler provides a summary of tablet balancer state
	DebugHandler(w http.ResponseWriter, r *http.Request)
}

func NewTabletBalancer

func NewTabletBalancer(localCell string, vtGateCells []string) TabletBalancer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL