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
[master] Simplify and unify local address getting method #8679
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8679 +/- ##
============================================
- Coverage 61.03% 61.03% -0.01%
+ Complexity 448 447 -1
============================================
Files 1097 1097
Lines 44398 44376 -22
Branches 6466 6459 -7
============================================
- Hits 27098 27084 -14
+ Misses 14317 14316 -1
+ Partials 2983 2976 -7
Continue to review full report at Codecov.
|
我们使用的docker swam集群,2.7.14版本之前能获取到容器swarm网络的IP,现在获取的是本地虚拟网桥段的地址,这个IP地址只能够本机访问,跨主机是不能访问的。代码更新后功能有问题,需要回退。 |
@zhlking |
加一个 -DDUBBO_IP_TO_BIND=x.x.x.x 启动参数应该可以解决, 具体原因见 #8676 后面的解释。 |
尝试过,但是我们这里容器调度使用 DockerSwarm stack模式启动容器,宿主机的IP是动态的,实际场景不适合通过 -DDUBBO_IP_TO_BIND 写死主机IP Docker Swarm 的compose stack模式部署的容器不支持内置变量传递 |
可以看一下ifmetric ,如果能把想要用的网络接口的优先级metric设为最小应该也能解决问题。 |
|
What is the purpose of the change
fix #8676 on master