Skip to content

Commit

Permalink
[INLONG-11663][SDK] Increase the conn pool size for Golang SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
gunli committed Jan 14, 2025
1 parent 9030cf3 commit 80ea493
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,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)
pool, err := connpool.NewConnPool(endpoints, connsPerEndpoint, 2048, c, c.log)
if err != nil {
return err
}
Expand Down

0 comments on commit 80ea493

Please sign in to comment.