mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 11:47:42 +00:00
tweak more
This commit is contained in:
parent
07961c1199
commit
2a98be36ae
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
backoff = 5 // How long we wait in between checking for notifications, in seconds
|
backoff = 5 // How long we wait in between checking for notifications, in seconds
|
||||||
pollDuration = 10 * time.Millisecond
|
pollDuration = 5 * time.Millisecond
|
||||||
rate = 0.1
|
rate = 0.1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ func (nw *notificationsWorker) Start(consumers int) error {
|
||||||
"numConsumers": consumers,
|
"numConsumers": consumers,
|
||||||
}).Info("starting up notifications worker")
|
}).Info("starting up notifications worker")
|
||||||
|
|
||||||
prefetchLimit := int64(consumers * 2)
|
prefetchLimit := int64(consumers * 8)
|
||||||
|
|
||||||
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue