You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "seqwait (via GitHub)" <gi...@apache.org> on 2025/03/23 03:30:28 UTC

[I] [Feature] 多网卡注册问题 [dubbo]

seqwait opened a new issue, #15265:
URL: https://github.com/apache/dubbo/issues/15265

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar feature requirement.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Descriptions
   
   In a Docker Swarm overlay network, some services are connected to the ingress network, while others are not. However, all services are connected to a custom overlay network. The issue is that Dubbo sometimes selects the ingress network, causing services that are not part of the ingress network to be unable to find providers.
   
   The ignored and preferred options do not solve the issue because the ingress network might be assigned to eth0 or eth1 at startup, making the interface selection inconsistent.
   
   Does Dubbo provide a way to prefer a specific subnet, such as dubbo.network.interface.address.prefix?
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Feature] Multi-Interface registration issues [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #15265:
URL: https://github.com/apache/dubbo/issues/15265#issuecomment-2747423333

   You can use `dubbo.network.interface.preferred`
   
   FYI `org.apache.dubbo.common.utils.NetUtils#findNetworkInterface`


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Feature] Multi-Interface registration issues [dubbo]

Posted by "seqwait (via GitHub)" <gi...@apache.org>.
seqwait commented on issue #15265:
URL: https://github.com/apache/dubbo/issues/15265#issuecomment-2765937941

   > You can use `dubbo.network.interface.preferred`
   > 
   > FYI `org.apache.dubbo.common.utils.NetUtils#findNetworkInterface`
   
   This doesn’t solve the problem because the container uses multiple network interfaces, and eth0 doesn’t necessarily correspond to the custom overlay network. eth0 could correspond to the ingress network or it could correspond to the custom overlay network.
   
   ![Image](https://github.com/user-attachments/assets/756311d3-f830-4a6b-bc65-da31bfde0461)
   
   ![Image](https://github.com/user-attachments/assets/916166ac-099e-4238-8873-553bfd216608)
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Feature] Multi-Interface registration issues [dubbo]

Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw closed issue #15265: [Feature] Multi-Interface registration issues
URL: https://github.com/apache/dubbo/issues/15265


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Feature] Multi-Interface registration issues [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #15265:
URL: https://github.com/apache/dubbo/issues/15265#issuecomment-2782331185

   You can calculate the right network interface in a bootstrap script, then set as the java properties for Dubbo


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org