routing/router: increase validation barrier size to 1000
This allows for a 1000 different persistent operations to proceed concurrently. Now that we are batching operations at the db level, the average number of outstanding requests will be higher since the commit latency has increased. To compensate, we allow for more outstanding requests to keep the router busy while batches are constructed.
This commit is contained in:
parent
f8154c65c5
commit
e8c545e909
@ -3,7 +3,6 @@ package routing
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"runtime"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
@ -914,7 +913,7 @@ func (r *ChannelRouter) networkHandler() {
|
||||
|
||||
// We'll use this validation barrier to ensure that we process all jobs
|
||||
// in the proper order during parallel validation.
|
||||
validationBarrier := NewValidationBarrier(runtime.NumCPU()*4, r.quit)
|
||||
validationBarrier := NewValidationBarrier(1000, r.quit)
|
||||
|
||||
for {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user