apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.56k stars 3.98k forks source link

set tags workers unlimitedly #2801

Closed zhengJade closed 3 weeks ago

zhengJade commented 3 weeks ago

What problem does this PR solve?

Issue Number:

Problem Summary: 设置 tag 对应的 worker 需要考虑 bthread_concurrency 和 bthread_min_concurrency,而且如果超过 bthread_concurrency 而又没有使用 bthread_min_concurrency 就无法正常设置 tag 对应的 worker 值,因为修改 bthread_concurrency 的值会直接平均分配给每一个 tag。

What is changed and the side effects?

Changed: 修改了增加 tag 对应 worker 的逻辑。

Side effects:


Check List:

wwbmmm commented 3 weeks ago

@yanglimingcn 看看

yanglimingcn commented 3 weeks ago

LGTM