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 {