lightning: concurrency setting when write to tikv #51380
Labels
component/ddl
This issue is related to DDL of TiDB.
component/lightning
This issue is related to Lightning of TiDB.
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
before 7.0.0, we can use range-concurrency to control concurrency(multiple by 2 actually) when write to tikv, but after 7.0.0, the write concurrency is
table-concurrency * range-concurrency * 2
as we startrange-concurrency * 2
workers for each engine, if we enlargetable-concurrency
as before, the tikv write concurrency might be too large and overload tikv(io), it might increase io latency -> stuck raftstore -> leader change frequently -> cause region split fail even after retry(keeps reportingnot leader
orleader is none
error)tidb/br/pkg/lightning/backend/local/local.go
Lines 1420 to 1424 in 33d7a2c
The text was updated successfully, but these errors were encountered: