You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@brpc.apache.org by "372046933 (via GitHub)" <gi...@apache.org> on 2025/12/25 09:10:10 UTC
[I] 是否支持SO_BINDTODEVICE (brpc)
372046933 opened a new issue, #3178:
URL: https://github.com/apache/brpc/issues/3178
**Is your feature request related to a problem?**
在多IP的服务器上,发现TX流量经常汇聚到一张网卡上。
**Describe the solution you'd like**
创建channel时,除了能通过connection group创建tcp stream,还需要SO_BINDTODEVICE指定具体设备,客户端自己做网卡的负载均衡。
**Describe alternatives you've considered**
**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: issues-unsubscribe@brpc.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org
Re: [I] 是否支持SO_BINDTODEVICE (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright closed issue #3178: 是否支持SO_BINDTODEVICE
URL: https://github.com/apache/brpc/issues/3178
--
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: issues-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org
Re: [I] 是否支持SO_BINDTODEVICE (brpc)
Posted by "372046933 (via GitHub)" <gi...@apache.org>.
372046933 commented on issue #3178:
URL: https://github.com/apache/brpc/issues/3178#issuecomment-3707931658
@wenjiecn 我用iperf3 --bind测试了一下,发现bind到IP并不能控制TX流量从IP所在的interface发出去。虽然source IP是指定的IP这个做到了。流量划分还是得SO_BINDTODEVICE才行
--
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: issues-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org
Re: [I] 是否支持SO_BINDTODEVICE (brpc)
Posted by "wenjiecn (via GitHub)" <gi...@apache.org>.
wenjiecn commented on issue #3178:
URL: https://github.com/apache/brpc/issues/3178#issuecomment-3698961890
@372046933 可以试试这个[PR](https://github.com/apache/brpc/pull/3179)
```
brpc::ChannelOptions copt;
// 配置网卡对应的IP
copt.client_host = "localhost";
```
--
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: issues-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org
Re: [I] 是否支持SO_BINDTODEVICE (brpc)
Posted by "wenjiecn (via GitHub)" <gi...@apache.org>.
wenjiecn commented on issue #3178:
URL: https://github.com/apache/brpc/issues/3178#issuecomment-3709071522
> [@wenjiecn](https://github.com/wenjiecn) 我用iperf3 --bind测试了一下,发现bind到IP并不能控制TX流量从IP所在的interface发出去。虽然source IP是指定的IP这个做到了。流量划分还是得SO_BINDTODEVICE才行
@372046933 已经修改好了
```
brpc::ChannelOptions copt;
// 配置网卡名称
copt.device_name = "eth0";
```
--
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: issues-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org
Re: [I] 是否支持SO_BINDTODEVICE (brpc)
Posted by "wenjiecn (via GitHub)" <gi...@apache.org>.
wenjiecn commented on issue #3178:
URL: https://github.com/apache/brpc/issues/3178#issuecomment-3697995541
done @372046933
--
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: issues-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org