mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +00:00
increase maxprocs
This commit is contained in:
parent
00bd99b60e
commit
3750374aa0
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
|
|||
consumers := runtime.NumCPU() * multiplier
|
||||
poolSize := multiplier / 4
|
||||
|
||||
runtime.GOMAXPROCS(poolSize)
|
||||
|
||||
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue