mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
bump up workers and poll duration
This commit is contained in:
parent
abf8823cf1
commit
4d2554fba6
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
pollDuration = 100 * time.Millisecond
|
||||
pollDuration = 10 * time.Millisecond
|
||||
backoff = 5
|
||||
rate = 0.1
|
||||
)
|
||||
|
@ -125,7 +125,7 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
numConsumers := runtime.NumCPU() * 8
|
||||
numConsumers := runtime.NumCPU() * 12
|
||||
prefetchLimit := int64(numConsumers * 8)
|
||||
|
||||
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
||||
|
|
Loading…
Reference in a new issue