From 8455d8941cb8bd928667243f229c4885882c2031 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 7 Jul 2021 22:59:19 -0400 Subject: [PATCH] increase connection lifetime --- cmd/apollo-worker/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/apollo-worker/main.go b/cmd/apollo-worker/main.go index d185e22..9cd7938 100644 --- a/cmd/apollo-worker/main.go +++ b/cmd/apollo-worker/main.go @@ -197,6 +197,7 @@ func main() { db.SetMaxOpenConns(workers * 2) db.SetMaxIdleConns(workers) + db.SetConnMaxLifetime(time.Hour) statsd, err := statsd.New("127.0.0.1:8125") if err != nil {