Skip to content

Commit

Permalink
config: reduce default table-concurrency from 8 to 6 (pingcap#175)
Browse files Browse the repository at this point in the history
Ensures table + index <= the default max-open-engine which is 8.
  • Loading branch information
kennytm authored and lonng committed Apr 30, 2019
1 parent 9b895b6 commit 889ce1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightning/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func NewConfig() *Config {
return &Config{
App: Lightning{
RegionConcurrency: runtime.NumCPU(),
TableConcurrency: 8,
TableConcurrency: 6,
IndexConcurrency: 2,
IOConcurrency: 5,
CheckRequirements: true,
Expand Down
2 changes: 1 addition & 1 deletion tidb-lightning.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 889ce1b

Please sign in to comment.