From aa92f1ec69c0b82d4c71fbcfc4f6fd30104c7f6e Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sat, 25 Jun 2022 14:01:03 -0400 Subject: [PATCH] increase API connections --- internal/cmd/api.go | 2 +- render.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/api.go b/internal/cmd/api.go index 8386951..344ed52 100644 --- a/internal/cmd/api.go +++ b/internal/cmd/api.go @@ -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 } diff --git a/render.yaml b/render.yaml index 195550f..92a8086 100644 --- a/render.yaml +++ b/render.yaml @@ -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