How to Configure Placement Rules for 2-Region 3-Center in Version 7.1

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 7.1版本中2地3中心,如何配置Placement Rules

| username: wenyi

[Test Environment for TiDB] Testing
[TiDB Version] 7.1.1
Looking at the official documentation for a 2-region, 3-center deployment topology, there is a section with configuration for version 5.2. How can I correctly convert it to the configuration for version 7.1?

label-property: # TiDB 5.2 and above versions do not support label-property configuration by default. To set replica policies, please use Placement Rules.
reject-leader:
- key: “dc”
value: “sha”

| username: tidb菜鸟一只 | Original post link

Refer to this: Placement Rules 使用文档 | PingCAP 文档中心

| username: wenyi | Original post link

This is created separately from the cluster, right? Can it be done in one step in the topology configuration of the cluster installation?

| username: tidb菜鸟一只 | Original post link

You can also set the corresponding rules in the configuration file before creating the cluster.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.