[GitHub] [incubator-brpc] guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?

2020-03-25 Thread GitBox
guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?
URL: https://github.com/apache/incubator-brpc/issues/1035#issuecomment-604169887
 
 
   @cdjingit 上面的方案,我们经过实践验证是可行,多谢.


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?

2020-01-29 Thread GitBox
guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?
URL: https://github.com/apache/incubator-brpc/issues/1035#issuecomment-579781687
 
 
   好的,多谢 @cdjingit @jamesge 


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?

2020-01-20 Thread GitBox
guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?
URL: https://github.com/apache/incubator-brpc/issues/1035#issuecomment-576510871
 
 
   主要将计算的部分拆分出来,主要是业务架构的需要.  比如说既有重调度的任务,又有重计算的任务.  将重计算和调度分开成两个Task Control.  
降低互相影响. @cdjingit 


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [incubator-brpc] guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?

2020-01-20 Thread GitBox
guangpec1 commented on issue #1035: 在一个服务中使用两个Task Control 是否会有影响?
URL: https://github.com/apache/incubator-brpc/issues/1035#issuecomment-576208924
 
 
   戈神,我们自己内部实现了,现在测试还没有发现问题,我详细描述一下场景. 建立两个 Task Control 分别是 T1 和 T2.  T1 
中处理网络请求,然后T1将“算力较大”的部分发给 T2, T1 发给T2的只是function和arg, T2 执行funciton (本质上调度 
start_background(tid, attr, fn, arg)),T2 任务结束后通过signal 通知 T1.  我理解Task 
Control 本质上是bthread 调度引擎,与bthread 的资源解耦.   同时Task Control 每一个Thtread Worker 
(pthread) 是资源独立的,因此可以建立两个task control.


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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