mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
increase max idle conns
we're routinely doing transactions which will hold up connections for some time, it was pretty easy to run out of 30 conns from routine function invocations. the 'right' thing is probably to add a config val to the url that we can strip before passing into the db, but i'm not sure i want to have our own query params in db urls, either.
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