From 98cafdfaed8a3312ecb6ad30e3d520c510aaff2a Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Tue, 1 Nov 2022 11:25:38 -0400 Subject: [PATCH] make things better for the golang scheduler --- internal/cmd/worker.go | 2 -- render.yaml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/cmd/worker.go b/internal/cmd/worker.go index 21dd76c..86e5140 100644 --- a/internal/cmd/worker.go +++ b/internal/cmd/worker.go @@ -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 diff --git a/render.yaml b/render.yaml index d8e7852..41b97f5 100644 --- a/render.yaml +++ b/render.yaml @@ -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