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

绑定阿里云弹性外网IP失败 #742

Closed
mhfc007 opened this issue Oct 16, 2017 · 5 comments
Closed

绑定阿里云弹性外网IP失败 #742

mhfc007 opened this issue Oct 16, 2017 · 5 comments
Labels
status/waiting-for-feedback Need reporters to triage

Comments

@mhfc007
Copy link

mhfc007 commented Oct 16, 2017

RT
我的服务是通过外网调用的.

在服务注册的时候 没有指定host 那么获取是的内网的地址 注册到ZK 就是内网地址 但是我的服务调用方和提供方不是在一个内网.

但是我配置成外网地址的话netty绑定不上, 因为压根没这个外网网卡.


所以能不能像类似Kafka一样 有一个
listeners=PLAINTEXT://0.0.0.0:9092
advertised.listeners=PLAINTEXT://124.222.122.17:9092

一个是监听的地址 一个是注册到ZK的地址

@mhfc007
Copy link
Author

mhfc007 commented Oct 16, 2017

看了下隔壁motan的 是直接绑定0.0.0.0的
serverChannel = bootstrap.bind(new InetSocketAddress(url.getPort()));

在netty绑定的时候 配置的 host 完全没用 host配置是注册用的.

感觉这个需求还是合理的.

@chickenlj
Copy link
Contributor

dubbo-docker-sample
提供示例使用方式,是否能满足你的场景?

@mhfc007
Copy link
Author

mhfc007 commented Oct 17, 2017

满足!!!

dubbo.properties也能支持下不 然后 JAVA_OPTS也支持这个参数 定个优先级.

@chickenlj
Copy link
Contributor

xml通过<dubbo:protocol host="" port="" />配置
properties通过dubbo.protocol.host="" dubbo.protocol.port=""

@chickenlj
Copy link
Contributor

经过讨论,我们觉得通过系统环境变量传递配置要比jdk系统变量更合理一些,我会在这里再修改一下 #763

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/waiting-for-feedback Need reporters to triage
Projects
None yet
Development

No branches or pull requests

2 participants