【TiDB Usage Environment】Production Environment
Version 5.3
At 7:30 AM, one of the online machines suddenly went offline, and the disk usage increased abnormally.
According to the monitoring, it was due to region migration, which caused the disk usage to increase abnormally. In this situation, queries are particularly slow. Is there a way to stop the region migration first to meet business needs?
You can temporarily lower the region-schedule-limit and replica-schedule-limit, and then increase them during off-peak business hours to quickly replenish the replicas.
Actually, I think this configuration, although effective, is a bit too extreme. What about newly created regions? Wouldn’t it be more appropriate to set enable-replace-offline-replica to false?
Final conclusion:
The disk usage is all pulled up by TiFlash.
Therefore, adjusting enable-replace-offline-replica and enable-remove-down-replica is useless because these two parameters cannot restrict TiFlash.
Restricting the store can directly restrict TiFlash.