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

# Functions

EstimatedCPUModelFromSettings constructs a EstimatedCPUModel using the tenant_cost_model.estimated_cpu cluster setting value.
NewNetworkCostTable parses the setting value, validates the setting, then returns a form that is programatically usable.
RequestUnitModelFromSettings constructs a RequestUnitModel using the cluster setting values.
SetOnChange installs a callback that is run whenever a cost model cluster setting changes.

# Variables

Settings for the cost model parameters.
DefaultEstimatedCPUModel is the default model that is used if the tenant_cost_model.estimated_cpu cluster setting is not specified.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.
Settings for the cost model parameters.

# Structs

BatchInfo records the number and size of read and write batches that are submitted to the KV layer.
EstimatedCPUModel contains all the conversion factors needed to predict KV- layer CPU consumption from the read and write requests flowing between the SQL and KV layers.
NetworkCostTable describes the cost of network bandwidith between pairs of region.
NetworkPath describes a source region -> destination region network flow.
RequestUnitModel contains the cost model parameters for computing request units (RUs).

# Type aliases

EstimatedCPU is a prediction of how much CPU a particular operation will consume.
NetworkCost records how expensive network traffic is between two regions.
RU stands for "Request Unit(s)"; the tenant cost model maps tenant activity into this abstract unit.