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
Click to show internal directories.
Click to hide internal directories.