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
3750374aa0
commit
62df908b33
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
|
||||||
consumers := runtime.NumCPU() * multiplier
|
consumers := runtime.NumCPU() * multiplier
|
||||||
poolSize := multiplier / 4
|
poolSize := multiplier / 4
|
||||||
|
|
||||||
runtime.GOMAXPROCS(poolSize)
|
runtime.GOMAXPROCS(multiplier)
|
||||||
|
|
||||||
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue