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:
Conner Fromknecht 2020-11-24 16:40:10 -08:00
parent f8154c65c5
commit e8c545e909
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

View File

@ -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 {