Comments (11)
本地可以调用这就排除程序的问题, 看下服务器防火墙端口是否开放,如果还有疑问可以把日志设置为Debug级别,这样就能跟踪调用信息,或者打开网关管理后台,看下节点是否运行正常
from surging.
服务器防火墙就没有开启,不会是防火墙的问题,日志的话不能查看,不是运行在vs的,是发布在Docker容器出的问题,查看Consul,节点是正常的
from surging.
可以通过以下去查找问题
1,可以看命令行打印出来的日志,如下图
2,可以看文本文件打印出来的日志,如下图
3.可以通过网关查看节点运行是否正常
from surging.
还有如果是docker 部署请使用以下进行配置
第一种:
options.IpEndpoint= new IPEndPoint(IPAddress.Any, 98)
第二种:
options.Ip = "0.0.0.0";
options.Port = 98;
from surging.
那么服务容器对外暴露的端口也是98嘛?还是任意?任何一个服务都是98?
from surging.
这个端口是由你自己设置的
from surging.
改成0.0.0.0,部署在容器同样是错误的,网关可以调用服务
暴露的端口是:
from surging.
启用0.0.0.0后 查找ip4 地址,你看下docker是否正确
from surging.
经测试,发现是服务应该不是不能立即更新注册,发布在Docker容器过几分钟后,网关能够正常返回正确的数据,不知道具体是什么延时了!
from surging.
options.Ip = "0.0.0.0";
options.Port = 随意; 服务才有这种形式
from surging.
你可以更改WatchInterval设置,默认是1分钟,也就是说间隔1分钟会心跳读取一次注册中心。可以按照以下进行更改成间隔5秒读一次。
option.UseConsulManager(new ConfigInfo("127.0.0.1:8500") {
WatchInterval = 5
});
from surging.
Related Issues (20)
- hh
- 单服务热加载问题 HOT 3
- 用jmeter对sayhello做压力测试时,返回结果不一致,entity为1 HOT 1
- k8s
- k8s中单服务重发之后 提示如下 HOT 3
- The community version is the last version. HOT 3
- new feature Protokollwandler component will be updated in SurgingVista version
- 统计一下有多少人使用社区版 HOT 1
- Hot deployment modules and components
- 请问Surging 中使用的 WebSocketCore 的源码是这个地址吗 HOT 1
- server进程占用的内存一直增长,直到进程崩溃,是什么原因? HOT 11
- NLog HOT 6
- surgingSettings.json配置中的Consul 连接ConnectionString配置 HOT 1
- Surging.Core.KestrelHttpServer HOT 1
- 请求参数
- 开源**NCC介绍 HOT 4
- 使用serviceProxyProvider.Invoke调用接口内存持续增长 HOT 4
- TCP network components that support configuring properties
- 服务间通讯导致内存持续增加 HOT 5
- skywalking报错 HOT 2
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 surging.