We are using the database/sql package for interaction with MySQL DB along with golang MySQL driver. We are noticing that the idle connections are not getting closed even though they have exceeded the max number of allowed idle connections. Below are the settings that we are using in our application.
it seems that you've hit the wrong issue tracker. This is the issue tracker for Rietveld, the code review tool running at https://codereview.appspot.com/.
We are using the database/sql package for interaction with MySQL DB along with golang MySQL driver. We are noticing that the idle connections are not getting closed even though they have exceeded the max number of allowed idle connections. Below are the settings that we are using in our application.
dbController.Db.SetConnMaxLifetime(time.Second*60); dbController.Db.SetMaxIdleConns(10); dbController.Db.SetMaxOpenConns(300);
Any help in this regard will be greatly appreciated.
Regards, Satish