mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-21 19:37:41 +00:00
increase API connections
This commit is contained in:
parent
6b7abe4eb0
commit
aa92f1ec69
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ func APICmd(ctx context.Context) *cobra.Command {
|
|||
}
|
||||
defer statsd.Close()
|
||||
|
||||
db, err := cmdutil.NewDatabasePool(ctx, 1)
|
||||
db, err := cmdutil.NewDatabasePool(ctx, 16)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -65,8 +65,8 @@ services:
|
|||
- key: BUGSNAG_APP_TYPE
|
||||
value: api
|
||||
scaling:
|
||||
minInstances: 1
|
||||
maxInstances: 3
|
||||
minInstances: 2
|
||||
maxInstances: 4
|
||||
targetCPUPercent: 60
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo api
|
||||
|
|
Loading…
Reference in a new issue