mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 14:25:28 +00:00
make things better for the golang scheduler
This commit is contained in:
parent
00ea87b0a8
commit
98cafdfaed
2 changed files with 1 additions and 3 deletions
|
@ -48,8 +48,6 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
|
|||
|
||||
poolSize := consumers / 4
|
||||
|
||||
runtime.GOMAXPROCS(consumers)
|
||||
|
||||
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -91,7 +91,7 @@ services:
|
|||
maxInstances: 30
|
||||
targetCPUPercent: 80
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 1024
|
||||
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 256
|
||||
|
||||
# Stuck Notifications Checker
|
||||
- type: worker
|
||||
|
|
Loading…
Reference in a new issue