Some Issues with Multi-Center Deployment

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

Original topic: 多中心部署的一些问题

| username: 我家有个臭皮崽

I saw the following links:

I don’t quite understand how to set it up to ensure that the leader of the region in TiKV is confined to a specific center. For example, in the case of 3 replicas and 3 centers:

| username: 裤衩儿飞上天 | Original post link

The image is not visible. Please provide the text content for translation.

| username: 我家有个臭皮崽 | Original post link

I have labeled the tikverver with [“az”, “zone”, “rack”, “host”] and set up six tikv-servers as follows:
[“az”: 1, “zone”: 1, “rack”: 1, “host”: 10]
[“az”: 1, “zone”: 1, “rack”: 1, “host”: 11]
[“az”: 2, “zone”: 2, “rack”: 2, “host”: 12]
[“az”: 2, “zone”: 2, “rack”: 2, “host”: 13]
[“az”: 3, “zone”: 3, “rack”: 3, “host”: 14]
[“az”: 3, “zone”: 3, “rack”: 3, “host”: 15]

Set [“az”, “zone”, “rack”, “host”] on PD.

| username: 我家有个臭皮崽 | Original post link

Then I need to ensure that the leader of each region’s three replicas is controlled in the center of az = 1. How should I set this up?
PS: Is Placement Rules only a setting rule for PD multi-center clusters, and TiKV does not follow this rule? Is this understanding correct?

| username: Minorli-PingCAP | Original post link

You can achieve this using the eviction and priority settings mentioned by the teacher above.

| username: 我家有个臭皮崽 | Original post link

I want to set the leader of the data, not the leader of the PD.

| username: 裤衩儿飞上天 | Original post link

First method: Evict the leader to the AZ carrying business traffic
Second method: Use placement rules

| username: Billmay表妹 | Original post link

You can refer to the following content~

[Best Practices] Same City/Two Locations/Multiple Centers Practice Solutions

Same City/Two Locations/Multiple Centers Practice Solutions - Column Articles

Same City/Two Locations/Multiple Centers Practice Solutions - Technical Q&A

Same City/Two Locations/Multiple Centers Practice Solutions - Documents/SOP

| username: 我家有个臭皮崽 | Original post link

I understand that placement rules are restrictions on the PD leader.

| username: 裤衩儿飞上天 | Original post link

For specific reference, see: Placement Rules Documentation | PingCAP Documentation Center

| username: system | Original post link

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