From 15c543bb6278e69a863eda3dfd5b591705729ad1 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 7 Jul 2021 22:58:21 -0400 Subject: [PATCH] tweak db connections --- cmd/apollo-worker/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/apollo-worker/main.go b/cmd/apollo-worker/main.go index 3434b27..d185e22 100644 --- a/cmd/apollo-worker/main.go +++ b/cmd/apollo-worker/main.go @@ -195,7 +195,8 @@ func main() { logger.Printf("Starting with %d workers.", workers) - db.SetMaxOpenConns(workers) + db.SetMaxOpenConns(workers * 2) + db.SetMaxIdleConns(workers) statsd, err := statsd.New("127.0.0.1:8125") if err != nil {