Comments (8)
把配置改成0.0.0.0:7171
from discovery.
from discovery.
@felixhao 不行的 还是会呗拒绝
这个地址会被 汇报上去。。
logic 那边的code 都会调用0.0.0.0 这个ip 的discovery了
还是决定多加个端口配置比较合理
http server addr 是对外可见的 ip 和端口。
加个port 是启动服务使用的端口,如果有什么端口转发都可以实现
from discovery.
这个地方应该是在启动监听的时候自动转换为监听网卡地址,可以先修改配置使用网卡ip进行监听启动。我们在进行fix自动把ip转换为网卡ip
from discovery.
docker 启动的时候如果使用虚拟的网卡ip 的话,从宿主机外访问宿主ip:7171(或者容器的端口指向了宿主机其它ip) 就会被拒绝
from discovery.
@HelloWorldZQ 需要先理清楚:
- docker里启动discovery,配置文件将addr配置为
0.0.0.0:7171
- 启动依赖discovery的client,需要配置你对应docker的
${ip}:7171
分清楚服务端和客户端的配置
from discovery.
@felixhao , @HelloWorldZQ 的情况是他使用的discovery的服务自发现功能,地址配置为0.0.0.0的时候discovery 自己注册上去的服务地址会是0.0.0.0 client拿到后无法访问,如果直接使用容器的网卡ip进行注册,那么非宿主机也无法访问到discovery。如果使用docker应该需要你修改下docker的网络方式,或者在client里写死discovery的ip:port
from discovery.
@lintanghui 多谢 。就是 这种情况,我没有很好的表达我的意思,目前我只能添加了一个配置 解决这个
from discovery.
Related Issues (20)
- DirtyTimestamp 的作用是啥? HOT 1
- go build 的时候发生错误 HOT 3
- v1.1.2下载的可执行文件启动失败:cgroup cpu init failed!err:=not implemented yet HOT 3
- example_test.go例子请教 HOT 1
- 请教关于-alsologtostderr 的具体作用。 HOT 1
- go get github.com/bilibili/discovery 报错无法解决
- fatal error: concurrent map iteration and map write HOT 2
- 注册服务被kill掉, discovery依然存在 HOT 1
- brpc c++ SDK 接口解析与 API 文档不一致 HOT 1
- 为什么返回请求数据需要做深拷贝呢?代码中存在多余的new
- 自发现的goroutine 没有做退出控制,依赖于main的退出 HOT 3
- poll请求参数描述有误
- poll请求中,超时错误会重复打印
- fatal error: concurrent map iteration and map write HOT 1
- http-access-log 出错 HOT 1
- Makefile 配置参数错误
- 3节点下,部分节点中应用addrs地址错误
- 参数请教 HOT 1
- [Question] What's the meaning of pkg: "github.com/bilibili/discovery/naming/grpc"?
- 看来这个项目也是废了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discovery.