package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Packages

# Functions

IsStoreValid returns true iff the provided store would be a valid in a range with the provided constraints.

# Constants

FollowTheWorkload moves leases towards where requests originate, to improve locality of access.
LeaseCountConvergence transfers leases such that lease counts converge across stores.
LoadConvergence transfers leases such that load converges across stores.
MinCPUDifferenceForTransfers is the minimum CPU difference that a store rebalncer would care about to reconcile (via lease or replica rebalancing) between any two stores.
MinCPUThresholdDifference is the minimum CPU difference from the cluster mean that this system should care about.
MinQPSThresholdDifference is the minimum QPS difference from the cluster mean that this system should care about.
NoSuitableTarget indicates a lease transfer attempt that found no suitable targets.
TransferErr indicates a lease transfer attempt that errored out.
TransferOK indicates a successful lease transfer attempt.

# Variables

CPURebalanceThreshold is the minimum ratio of a store's cpu time to the mean cpu time at which that store is considered overfull or underfull of cpu usage.
LoadBasedRebalanceInterval controls how frequently each store checks for load-base lease/replica rebalancing opportunties.
MinQPSDifferenceForTransfers is the minimum QPS difference that the store rebalancer would care to reconcile (via lease or replica rebalancing) between any two stores.
QPSRebalanceThreshold is much like rangeRebalanceThreshold, but for QPS rather than range count.

# Structs

RangeRequestLocalityInfo is the same as PerLocalityCounts and is used for tracking the request counts from each unique locality.
RangeUsageInfo contains usage information (sizes and traffic) needed by the allocator to make rebalancing decisions for a given range.
TestingKnobs allows tests to override the behavior of `Allocator`.
TransferLeaseOptions is the set of options needed to evaluate a lease transfer.

# Interfaces

AllocationError is a simple interface used to indicate a replica processing error originating from the allocator.

# Type aliases

LeaseTransferOutcome represents the result of shedLease().