config, opt: teach localityMatchScore
about voter_constraints
#59482
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
docs-done
docs-known-limitation
T-multiregion
localityMatchScore()
aids in computing the scan cost of a single row, from a given indexidx
, based on how well the locality tiers of the gateway match the zone config constraints onidx
. This allows the cost model to prioritize choosing indexes that are geographically closer over the ones that are further away from the gateway node.With the introduction of the new
voter_constraints
attribute, voting replicas are constrained by the existingconstraints
(which apply to all replicas - voting and non-voting) as well asvoter_constraints
(which apply only to voting replicas). Thus,localityMatchScore()
needs to be updated to include this new attribute when computing its result.Jira issue: CRDB-3285
The text was updated successfully, but these errors were encountered: