dbutil: reduce defaults so sum is < 100 (#2157)

This commit is contained in:
JT Olio 2019-06-09 13:04:22 -06:00 committed by Stefan Benten
parent 3a7ebea76e
commit 469d485f62
2 changed files with 4 additions and 4 deletions

View File

@ -11,8 +11,8 @@ import (
)
var (
maxIdleConns = flag.Int("db.max_idle_conns", 50, "Maximum Amount of Idle Database connections, -1 means the stdlib default")
maxOpenConns = flag.Int("db.max_open_conns", 100, "Maximum Amount of Open Database connections, -1 means the stdlib default")
maxIdleConns = flag.Int("db.max_idle_conns", 20, "Maximum Amount of Idle Database connections, -1 means the stdlib default")
maxOpenConns = flag.Int("db.max_open_conns", 25, "Maximum Amount of Open Database connections, -1 means the stdlib default")
connMaxLifetime = flag.Duration("db.conn_max_lifetime", -1, "Maximum Database Connection Lifetime, -1ns means the stdlib default")
)

View File

@ -44,10 +44,10 @@
# db.conn_max_lifetime: -1ns
# Maximum Amount of Idle Database connections, -1 means the stdlib default
# db.max_idle_conns: 50
# db.max_idle_conns: 20
# Maximum Amount of Open Database connections, -1 means the stdlib default
# db.max_open_conns: 100
# db.max_open_conns: 25
# address to listen on for debug endpoints
# debug.addr: "127.0.0.1:0"