Consider make rule location_labels
be empty
#31052
Labels
type/enhancement
The issue or PR belongs to an enhancement.
location_labels
be empty
#31052
Background
As issue tikv/pd#4467 shown, creating placement rule by DDL will set the
location_labels
beregion,zone,rack,host
in default. but the TiKV labels may not guarantee the relevant label hierarchy, which leads to un-expect scheduling.Proposal
make
location_labels
be empty, it's more like an undefined behavior, we may consider deleting the filedlocation_labels
in the rule later, and make it is affected by a global settinglocation labels
. andempty
more friendly for the compatibility issue.The text was updated successfully, but these errors were encountered: