mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +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
|
consumers := runtime.NumCPU() * multiplier
|
||||||
poolSize := multiplier / 4
|
poolSize := multiplier / 4
|
||||||
|
|
||||||
|
runtime.GOMAXPROCS(poolSize)
|
||||||
|
|
||||||
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue