PMM-7958 no idle conns in monitoring (#90)

This commit is contained in:
rishat-ishbulatov 2022-12-27 21:37:38 +03:00 committed by GitHub
parent e02ea57b91
commit 8140ab3e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ func NewServer(dsn string, opts ...ServerOpt) (*Server, error) {
return nil, err
}
db.SetMaxOpenConns(1)
db.SetMaxIdleConns(1)
db.SetMaxIdleConns(0)
level.Info(logger).Log("msg", "Established new database connection", "fingerprint", fingerprint)