[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path]
[Encountered Problem: Problem Phenomenon and Impact] One of the three TiDB storage nodes does not have a leader. What could be the reason?
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]
The default weights are the same, so differences in scores are normal. Usually, if the leader of a certain node is directly 0, it indicates an issue with the node, such as resource constraints or slow writes. You can refer to the documentation to troubleshoot step by step.
The default value of tidb_gc_life_time is 10m, which means that the data deleted 10 minutes ago will be cleaned up. If you want to restore the data, you need to set the tidb_gc_life_time to a larger value before deleting the data.