当前位置:网站首页>微服务连接云端Sentinel 控制台失败及连接成功后出现链路空白问题(已解决)
微服务连接云端Sentinel 控制台失败及连接成功后出现链路空白问题(已解决)
2022-06-11 16:19:00 【xzystart】
sentinel控制台服务器部署在云端
首先打算在本地启动微服务连接云上的sentinel
发现仅能注册进服务,却不能显示监控信息和链路信息。

查询日志后发现,云上的sentinel只能从注册中心拿到微服务,但是还是没有真正的连上8179端口,连接会报超时

百度后发现,因为服务器是无法直接与本机通信的,所以打算将微服务放到服务器上(另一台服务器)

配置另一台服务器后加入该服务器的ip(如果服务与sentinel在同一台主机就不需要配置,但是如果不在同一主机需要配置此通讯地址),另一台服务器开启8179端口防火墙
配置后连接成功

总结:
由于sentinel需要主动连接到你的微服务才能工作
所以sentinel如果想要部署在云端,则必须让云端能够访问到你的微服务(而不是你的微服务能访问到云端,即双边的连接都必须是通的),将微服务放到云上就是保证了你的微服务能被sentinel访问到。
边栏推荐
- Analysis of time complexity and space complexity
- 真香,华为主动离职也给 N+1
- 面试经典题目:怎么做的性能测试?【杭州多测师】【杭州多测师_王sir】
- 瑞吉外卖项目(三)员工管理业务开发
- Student website template brown cake dessert website design - brown cake dessert shop (4 pages) gourmet dessert website production final assignment finished product_ Fresh fruit web design final assign
- leetcode463. 岛屿的周长(简单)
- Customized thread communication (lock) of JUC
- Laravel 2020-01-01t00:00:00.000000z date conversion
- This "invisible" robot may be your future colleague
- Search and graph theory: Dijkstra finding the shortest path i-dijkstra (shortest path)
猜你喜欢

Laravel 2020-01-01t00:00:00.000000z date conversion

想学好ArrayList,看完这篇就够了

Pytest测试框架基础篇

大龄码农从北京到荷兰的躺平生活

2022安全员-C证特种作业证考试题库及答案

Zhenxiang, Huawei gives n+1 for voluntary resignation

How does the taskbar under the computer display open programs

Project workspace creation steps - Zezhong ar automated test tool

什么是泛型?为什么要使用泛型?泛型怎么用?那包装类呢?

leetcode684. Redundant connection (medium)
随机推荐
再聊数据中心网络
MSDN download win11 method, simple and easy to operate
leetcode-141.环形链表
Aaai2022 latest "time series data processing" report, 127 pages of PPT describing time series data processing and medical application progress
Factory calibrated gravity: working principle and installation position of carbon monoxide sensor, calibration standard description
[ISITDTU 2019]EasyPHP
CLP information - financial standardization "14th five year plan" highlights data security
485天,我远程办公的 21 条心得分享|社区征文
Time processing logic for the last 7 days, the last 10 days, and the last 90 days
leetcode785. 判断二分图(中等)
leetcode684. Redundant connection (medium)
WGet command use
AutoRunner自动化测试工具如何创建项目-Alltesting|泽众云测试
2022高压电工特种作业证考试题库及在线模拟考试
DHCP协议实例化分析
jdbc调试错误,求指导
[sword finger offer] 21 Adjust array order so that odd numbers precede even numbers
Search and graph theory: Dijkstra finding the shortest path i-dijkstra (shortest path)
laravel 2020-01-01T00:00:00.000000Z 日期转化
项目无法加载nacos配置中心的配置文件问题