tweak pool sizes and consumer count

This commit is contained in:
Andre Medeiros 2022-11-05 20:10:05 -04:00
parent 275bcec3f0
commit ded67f570d
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
}
defer db.Close()
redis, err := cmdutil.NewRedisLocksClient(ctx, consumers)
redis, err := cmdutil.NewRedisLocksClient(ctx, poolSize)
if err != nil {
return err
}

View file

@ -101,7 +101,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 512
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 1024
# Stuck Notifications Checker
- type: worker