mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 11:58:52 +08:00
better mysql connection pool management
adding SetConnMaxLifetime configuration (https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime) to enable refresh of connections.
This commit is contained in:
@@ -118,6 +118,7 @@ password = ""
|
||||
database = "" # create or use an existing database
|
||||
connection_max_idle = 2
|
||||
connection_max_open = 100
|
||||
connection_max_lifetime_seconds = 0
|
||||
interpolateParams = false
|
||||
|
||||
[postgres] # or cockroachdb
|
||||
|
Reference in New Issue
Block a user