Skip to content

Commit

Permalink
schedulers: reduce the batch size to avoid discarding
Browse files Browse the repository at this point in the history
ref #5638

Signed-off-by: Wenbo Zhang <ethercflow@gmail.com>
  • Loading branch information
ethercflow committed Feb 7, 2023
1 parent 2a7c8d4 commit e400501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/schedulers/transfer_witness_leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const (
TransferWitnessLeaderType = "transfer-witness-leader"
// TransferWitnessLeaderBatchSize is the number of operators to to transfer
// leaders by one scheduling
transferWitnessLeaderBatchSize = 10
transferWitnessLeaderBatchSize = 3
// TransferWitnessLeaderRecvMaxRegionSize is the max number of region can receive
// TODO: make it a reasonable value
transferWitnessLeaderRecvMaxRegionSize = 1000
transferWitnessLeaderRecvMaxRegionSize = 10000
)

var (
Expand Down

0 comments on commit e400501

Please sign in to comment.