kvserver: include rebalance objective in store rebalancer logging #102812
Labels
A-kv-distribution
Relating to rebalancing and leasing.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Is your feature request related to a problem? Please describe.
We enabled dual rebalancing objectives in #90582, where the store rebalancer will either look at QPS or CPU. The current objective can be found by checking the cluster settings and checking the cockroach.log if the value set by the cluster setting is unsupported:
cockroach/pkg/kv/kvserver/rebalance_objective.go
Line 251 in 9189237
Or by inspecting which load dimension's max threshold is equal to the mean e.g. below shows
cpu
set:Describe the solution you'd like
Log the current objective, as seen by the store rebalancer in the ambient ctx or somewhere otherwise visible.
Jira issue: CRDB-27665
The text was updated successfully, but these errors were encountered: