Skip to content

Commit

Permalink
[INLONG-11663][SDK] Increase the conn pool size for Golang SDK (#11677)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunli authored Jan 17, 2025
1 parent 583e658 commit 94d12f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (c *client) initConns() error {

// minimum connection number per endpoint is 1
connsPerEndpoint := int(math.Ceil(float64(c.options.WorkerNum) * 1.2 / float64(epLen)))
pool, err := connpool.NewConnPool(endpoints, connsPerEndpoint, 512, c, c.log, c.options.MaxConnLifetime)
pool, err := connpool.NewConnPool(endpoints, connsPerEndpoint, 2048, c, c.log, c.options.MaxConnLifetime)
if err != nil {
return err
}
Expand Down

0 comments on commit 94d12f1

Please sign in to comment.