Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 一个TiKV节点上是否可以存在同一个region的多个副本
【TiDB Usage Environment】Production Environment or Test Environment or POC
【TiDB Version】
【Encountered Problem】
【Reproduction Path】What operations were performed that led to the problem
【Problem Phenomenon and Impact】
【Attachments】 Relevant logs and monitoring (https://metricstool.pingcap.com/)
For questions related to performance optimization and troubleshooting, please download and run the script. Please select all and copy-paste the terminal output results for upload.
No, when PD schedules, it will not store multiple replicas of a region in the same TiKV, as this would be meaningless.
If the number of region replicas is greater than the number of nodes, it might be possible; if the number of replicas is less than the number of nodes, it should not be possible.
With this placement rule in version 6.2, you can specify the number of replicas and place multiple replicas on a specific label.
Yes, I saw this feature, although placing multiple replicas on a single TiKV node is meaningless.
TiDB strictly ensures that there is only one replica within one TiKV. Please note the distinction between TiKV and host.
Under normal PD scheduling, a region’s replicas will not be placed on the same TiKV instance, but they may be placed on another TiKV instance on the same host.