limindlmu opened a new issue, #2471:
URL: https://github.com/apache/brpc/issues/2471

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   LocalityAwareLoadBalancer中对某个节点的请求统计个数定死了128(RECV_QUEUE_SIZE). 如下面一段代码所示
   这里有个疑问是为什么不能直接 _time_q(_time_q_items),即_time_q自己管理内存?
   如果OWN_STORAGE,是否就可以直接通过gflags在构造函数中定义好_time_q的size?
   
   ```cpp
    butil::BoundedQueue<TimeInfo> _time_q;
   TimeInfo _time_q_items[RECV_QUEUE_SIZE];
   
   _time_q(_time_q_items, sizeof(_time_q_items), butil::NOT_OWN_STORAGE) ;
   ```
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   希望能够支持gflags调节 _time_q size 
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
    _time_q(_time_q_items)
   
   **Additional context/screenshots (更多上下文/截图)**
   无
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to