You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "wwbmmm (via GitHub)" <gi...@apache.org> on 2024/04/01 02:18:43 UTC

Re: [I] Tagged task group设置不同tag的task数量 (brpc)

wwbmmm commented on issue #2581:
URL: https://github.com/apache/brpc/issues/2581#issuecomment-2029043111

   > > 当前每个tagged task group数量是平均分配,但现实中需要对不同的task group指定不同的worker数量
   > > 可以增加一个FLAGS_per_tagged_task_group_numbers = "20:40:40",指定不同task group的数量
   > 
   > @wwbmmm 你有啥好的建议吗?你觉得这么搞可以吗?
   
   感觉多组的tag配置还是动态设置比较好,gflag本身不适合用来表达过于复杂的逻辑。如果用户需要在启动时指定,可以定义自己的gflag配置,然后根据自己的gflag配置调用bthread的接口来设置每一组的worker数量。


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

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


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