dbutil: reduce defaults so sum is < 100 (#2157)
This commit is contained in:
parent
3a7ebea76e
commit
469d485f62
@ -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")
|
||||
)
|
||||
|
||||
|
4
scripts/testdata/satellite-config.yaml.lock
vendored
4
scripts/testdata/satellite-config.yaml.lock
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user