increase API connections

This commit is contained in:
Andre Medeiros 2022-06-25 14:01:03 -04:00
parent 6b7abe4eb0
commit aa92f1ec69
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ func APICmd(ctx context.Context) *cobra.Command {
} }
defer statsd.Close() defer statsd.Close()
db, err := cmdutil.NewDatabasePool(ctx, 1) db, err := cmdutil.NewDatabasePool(ctx, 16)
if err != nil { if err != nil {
return err return err
} }

View file

@ -65,8 +65,8 @@ services:
- key: BUGSNAG_APP_TYPE - key: BUGSNAG_APP_TYPE
value: api value: api
scaling: scaling:
minInstances: 1 minInstances: 2
maxInstances: 3 maxInstances: 4
targetCPUPercent: 60 targetCPUPercent: 60
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 api startCommand: panic-monitor ./apollo api