Revert "Increase default MaxIdleConns. (#3164)" (#4007)

This reverts commit 600640294d,
removing the maxIdleDBConns config setting.
This commit is contained in:
Jacob Hoffman-Andrews 2019-01-16 05:41:21 -08:00 committed by Daniel McCarney
parent 842739bccd
commit cdc01df24f
3 changed files with 2 additions and 7 deletions

View File

@ -70,9 +70,6 @@ func main() {
scope.MustRegister(dbConnStat)
dbConnStat.Set(float64(saConf.DBConfig.MaxDBConns))
if saConf.DBConfig.MaxIdleDBConns != 0 {
dbMap.Db.SetMaxIdleConns(saConf.DBConfig.MaxIdleDBConns)
}
go sa.ReportDbConnCount(dbMap, scope)
clk := cmd.Clock()

View File

@ -48,9 +48,8 @@ type ServiceConfig struct {
type DBConfig struct {
DBConnect string
// A file containing a connect URL for the DB.
DBConnectFile string
MaxDBConns int
MaxIdleDBConns int
DBConnectFile string
MaxDBConns int
}
// URL returns the DBConnect URL represented by this DBConfig object, either

View File

@ -2,7 +2,6 @@
"sa": {
"dbConnectFile": "test/secrets/sa_dburl",
"maxDBConns": 100,
"maxIdleDBConns": 10,
"maxConcurrentRPCServerRequests": 100000,
"ParallelismPerRPC": 20,
"debugAddr": ":8003",