The Concept and Usage of PD's Isolation-Level Configuration

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

Original topic: PD 的 isolation-level 配置的概念及用途

| username: Raymond

The purpose of the PD’s isolation-level configuration is to ensure that the replicas of a region are not all distributed within the range specified by the isolation-level. For example, if the isolation-level is set to zone, then the three replicas of a region cannot all be distributed within the same zone. Similarly, if the isolation-level is set to host, then the three replicas of a region cannot all be distributed within the same host. Is this understanding correct?

| username: JohnnyBlaze | Original post link

Personally, I think so too, and the related tutorials explain it this way.
Refer to the TiDB Database Core Principles and Architecture [TiDB v6] course Lesson 04 Placement Driver classroom quiz.

| username: cs58_dba | Original post link

Basically, it’s already good enough if they are not on the same host.

| username: 江湖故人 | Original post link

If the isolation-level is set to zone, then the three replicas of the region will be distributed in different zones.
If the isolation-level is set to host, then the three replicas of the region will be distributed in different hosts.
Even if adhering to this isolation restriction makes it impossible to meet the multi-replica requirement of max-replicas, PD will not perform the corresponding scheduling.

| username: 哈喽沃德 | Original post link

The isolation-level configuration parameter of PD is only used to specify the transaction isolation level of TiDB and has no direct relation to the distribution of Region replicas.

| username: 小龙虾爱大龙虾 | Original post link

Pay close attention to the original poster’s question and do not mislead others. Reference: 通过拓扑 label 进行副本调度 | PingCAP 文档中心

| username: system | Original post link

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