mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +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()
|
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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue