diff --git a/lightning/config/config.go b/lightning/config/config.go index 37ad64fa8..24d6ea368 100644 --- a/lightning/config/config.go +++ b/lightning/config/config.go @@ -156,7 +156,7 @@ func NewConfig() *Config { return &Config{ App: Lightning{ RegionConcurrency: runtime.NumCPU(), - TableConcurrency: 8, + TableConcurrency: 6, IndexConcurrency: 2, IOConcurrency: 5, CheckRequirements: true, diff --git a/tidb-lightning.toml b/tidb-lightning.toml index af1b23710..8e49e66f5 100644 --- a/tidb-lightning.toml +++ b/tidb-lightning.toml @@ -10,7 +10,7 @@ pprof-port = 8289 # index-concurrency controls the maximum handled index concurrently while reading Mydumper SQL files. It can affect the tikv-importer disk usage. index-concurrency = 2 # table-concurrency controls the maximum handled tables concurrently while reading Mydumper SQL files. It can affect the tikv-importer memory usage. -table-concurrency = 8 +table-concurrency = 6 # region-concurrency changes the concurrency number of data. It is set to the number of logical CPU cores by default and needs no configuration. # In mixed configuration, you can set it to 75% of the size of logical CPU cores. # region-concurrency default to runtime.NumCPU()