Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Multi-Interface registration issues #15265

Open
3 of 4 tasks
seqwait opened this issue Mar 23, 2025 · 1 comment
Open
3 of 4 tasks

[Feature] Multi-Interface registration issues #15265

seqwait opened this issue Mar 23, 2025 · 1 comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@seqwait
Copy link

seqwait commented Mar 23, 2025

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues 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

@seqwait seqwait added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Mar 23, 2025
@seqwait seqwait changed the title [Feature] 多网卡注册问题 [Feature] Multi-Interface registration issues Mar 23, 2025
@AlbumenJ
Copy link
Member

You can use dubbo.network.interface.preferred

FYI org.apache.dubbo.common.utils.NetUtils#findNetworkInterface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

2 participants