Browse Source

MySQL: MaxIdleConns, MaxOpenConns -> 8

Vova Tkach 5 years ago
parent
commit
2c2dc8984f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/wrapper/wrapper.go

+ 2 - 2
engine/wrapper/wrapper.go

@@ -141,8 +141,8 @@ func (this *Wrapper) UseDatabase() error {
 
 
 	// Max 60 minutes and max 4 connection per host
 	// Max 60 minutes and max 4 connection per host
 	this.DB.SetConnMaxLifetime(time.Minute * 60)
 	this.DB.SetConnMaxLifetime(time.Minute * 60)
-	this.DB.SetMaxIdleConns(4)
-	this.DB.SetMaxOpenConns(4)
+	this.DB.SetMaxIdleConns(8)
+	this.DB.SetMaxOpenConns(8)
 
 
 	return nil
 	return nil
 }
 }