mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 21:27:42 +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 (
|
const (
|
||||||
pollDuration = 100 * time.Millisecond
|
pollDuration = 10 * time.Millisecond
|
||||||
backoff = 5
|
backoff = 5
|
||||||
rate = 0.1
|
rate = 0.1
|
||||||
)
|
)
|
||||||
|
@ -125,7 +125,7 @@ func main() {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
numConsumers := runtime.NumCPU() * 8
|
numConsumers := runtime.NumCPU() * 12
|
||||||
prefetchLimit := int64(numConsumers * 8)
|
prefetchLimit := int64(numConsumers * 8)
|
||||||
|
|
||||||
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue