gunli opened a new issue, #11663:
URL: https://github.com/apache/inlong/issues/11663

   ### Description
   
   Currently, the conn pool size is 512, it may be not enough for those big 
cluster.
   ```go
   func (c *client) initConns() error {
        epList := c.discoverer.GetEndpoints()
        epLen := len(epList)
        if epLen == 0 {
                return ErrNoEndpoint
        }
   
        endpoints := make([]string, epLen)
        for i := 0; i < epLen; i++ {
                endpoints[i] = epList[i].Addr
        }
   
        // 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)
        if err != nil {
                return err
        }
   
        c.connPool = pool
        return nil
   }
   ```
   
   ### InLong Component
   
   InLong SDK
   
   ### Are you willing to submit PR?
   
   - [x] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@inlong.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to