yanglimingcn commented on PR #2358:
URL: https://github.com/apache/brpc/pull/2358#issuecomment-1766263407

   > 
关于这个MR我有个疑问:现在server端tag都是绑定的端口吗?客户端通过设置bthread_attr_t中的tag,发到server对应的不同线程池。对server端来说,也就是说一个bthread线程池对应的一个端口,没办法做到一个端口内根据某个tag转发到不同线程池,是吧?
 我们目前对控制链路(braft)和数据链路(brpc server)都是用的同一个端口,这种情况下如果要拆分线程池的话,在不修改代码前提下,只能拆端口吧?
   
   现在一个tag对应一组线程池,也对应着一个独立的端口。所以客户端是通过访问不同端口做到线程池的隔离的。控制链路(braft)和数据链路(brpc 
server)都是用的同一个端口这种情况,只能将控制链路和数据链路拆分到两个不同Server中,每个Server使用一个端口。


-- 
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...@brpc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to