Skip to content

Commit

Permalink
ddl: increase to 4000 regions per global sort subtask (#52043)
Browse files Browse the repository at this point in the history
close #52042
  • Loading branch information
tangenta authored Mar 23, 2024
1 parent 652ff98 commit 73cb3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ddl/backfilling_dist_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ func calculateRegionBatch(totalRegionCnt int, instanceCnt int, useLocalDisk bool
if useLocalDisk {
regionBatch = avgTasksPerInstance
} else {
// For cloud storage, each subtask should contain no more than 100 regions.
regionBatch = min(100, avgTasksPerInstance)
// For cloud storage, each subtask should contain no more than 4000 regions.
regionBatch = min(4000, avgTasksPerInstance)
}
regionBatch = max(regionBatch, 1)
return regionBatch
Expand Down

0 comments on commit 73cb3b1

Please sign in to comment.