mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-14 16:07:42 +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()
|
defer db.Close()
|
||||||
|
|
||||||
redis, err := cmdutil.NewRedisLocksClient(ctx, consumers)
|
redis, err := cmdutil.NewRedisLocksClient(ctx, poolSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ services:
|
||||||
maxInstances: 30
|
maxInstances: 30
|
||||||
targetCPUPercent: 80
|
targetCPUPercent: 80
|
||||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
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
|
# Stuck Notifications Checker
|
||||||
- type: worker
|
- type: worker
|
||||||
|
|
Loading…
Reference in a new issue