mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-26 00:05:28 +00:00
tweak pool sizes and consumer count
This commit is contained in:
parent
275bcec3f0
commit
ded67f570d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue