mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
increase gomaxprocs
This commit is contained in:
parent
26a034a68b
commit
83fb4cdcc7
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,8 @@ func main() {
|
|||
numConsumers := runtime.NumCPU() * 12
|
||||
prefetchLimit := int64(numConsumers * 2)
|
||||
|
||||
runtime.GOMAXPROCS(numConsumers / 4)
|
||||
|
||||
if err := queue.StartConsuming(prefetchLimit, pollDuration); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue