mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
increase connection lifetime
This commit is contained in:
parent
15c543bb62
commit
8455d8941c
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue