mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Merge branch 'db-max-conns' into 'master'
increase max idle conns See merge request !109
This commit is contained in:
@@ -119,7 +119,7 @@ func New(url *url.URL) (models.Datastore, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
maxIdleConns := 30 // c.MaxIdleConnections
|
maxIdleConns := 256 // TODO we need to strip this out of the URL probably
|
||||||
db.SetMaxIdleConns(maxIdleConns)
|
db.SetMaxIdleConns(maxIdleConns)
|
||||||
logrus.WithFields(logrus.Fields{"max_idle_connections": maxIdleConns, "datastore": driver}).Info("datastore dialed")
|
logrus.WithFields(logrus.Fields{"max_idle_connections": maxIdleConns, "datastore": driver}).Info("datastore dialed")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user