Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: Tiflash副本设置对查询速度有无影响
【TiDB Usage Environment】Production Environment
【TiDB Version】v5.1.0
【Encountered Issue】In the production environment, TiFlash is set to one replica. Users report slow query speeds and want to know if setting it to two replicas will improve query speed. Is there a direct relationship between query speed and the number of replicas?
I remember it had no impact before. My personal suggestion is to set the number of replicas according to the number of TiFlash machines. Currently, the number of replicas is only related to high availability and does not affect query performance.
Setting TiFlash replicas will speed up queries for OLAP-type workloads.
The number of replicas has no impact on MPP performance, but the number of TiFlash nodes does affect MPP performance.
I don’t think there is a direct impact.
If the query concurrency is relatively high, having multiple TiFlash nodes and replicas can naturally improve performance.
No impact, the number of replicas is related to high availability, increasing replicas will not improve query performance. Usually, setting two replicas for TiFlash is sufficient.