private/dbutil: reduce db connection defaults (#3920)
This commit is contained in:
parent
0521435e08
commit
9dbd511396
@ -12,8 +12,8 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
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")
|
||||
maxIdleConns = flag.Int("db.max_idle_conns", 1, "Maximum Amount of Idle Database connections, -1 means the stdlib default")
|
||||
maxOpenConns = flag.Int("db.max_open_conns", 5, "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
@ -152,10 +152,10 @@ contact.external-address: ""
|
||||
# db.conn_max_lifetime: -1ns
|
||||
|
||||
# Maximum Amount of Idle Database connections, -1 means the stdlib default
|
||||
# db.max_idle_conns: 20
|
||||
# db.max_idle_conns: 1
|
||||
|
||||
# Maximum Amount of Open Database connections, -1 means the stdlib default
|
||||
# db.max_open_conns: 25
|
||||
# db.max_open_conns: 5
|
||||
|
||||
# address to listen on for debug endpoints
|
||||
# debug.addr: 127.0.0.1:0
|
||||
|
Loading…
Reference in New Issue
Block a user