Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: TiDB集群中如果出现多个TIKV机器故障,怎么判断region是否多数派故障
If multiple TiKV machines fail in a TiDB cluster, how do you determine if the region has a majority failure?
For example, when [store1, store30, store31] are down and unavailable, we can find all Regions where the number of Down replicas is greater than the number of normal replicas by using the following command:
>> region --jq=".regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total | map(if .==(1,30,31) then . else empty end) | length>=$total-length) }"
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.