Skip to content

Commit

Permalink
修改介绍
Browse files Browse the repository at this point in the history
  • Loading branch information
HaojunRen committed Sep 4, 2024
1 parent 375b059 commit 5675b1d
Show file tree
Hide file tree
Showing 296 changed files with 16,810 additions and 10,765 deletions.
Empty file added .nojekyll
Empty file.
181 changes: 181 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,186 @@ Polaris为Discovery高级定制版,特色功能

![](https://nepxion.github.io/Discovery/docs/contact-doc/wechat-1.jpg)![](https://nepxion.github.io/Discovery/docs/contact-doc/dingding-1.jpg)![](https://nepxion.github.io/Discovery/docs/contact-doc/gongzhonghao-1.jpg)![](https://nepxion.github.io/Discovery/docs/contact-doc/document-1.jpg)

## 目录
- [简介](#简介)
- [作者简介](#作者简介)
- [商业合作](#商业合作)
- [入门资料](#入门资料)
- [功能概述](#功能概述)
- [郑重致谢](#郑重致谢)
- [请联系我](#请联系我)
- [环境搭建](#环境搭建)
- [获取图形化桌面端](#获取图形化桌面端)
- [启动控制台](#启动控制台)
- [启动图形化桌面端](#启动图形化桌面端)
- [登录图形化桌面端](#登录图形化桌面端)
- [全链路编排建模](#全链路编排建模)
- [全链路蓝绿发布编排建模](#全链路蓝绿发布编排建模)
- [全链路灰度发布编排建模](#全链路灰度发布编排建模)
- [全链路流量侦测](#全链路流量侦测)
- [全链路蓝绿发布流量侦测](#全链路蓝绿发布流量侦测)
- [全链路灰度发布流量侦测](#全链路灰度发布流量侦测)
- [全链路蓝绿灰度发布混合流量侦测](#全链路蓝绿灰度发布混合流量侦测)
- [Star走势图](#Star走势图)

## 环境搭建

### 获取图形化桌面端

桌面端获取方式有两种方式
- 通过[https://github.com/Nepxion/DiscoveryDesktop/releases](https://github.com/Nepxion/DiscoveryDesktop/releases)下载最新版本的discovery-desktop-release
- 编译[https://github.com/Nepxion/DiscoveryDesktop](https://github.com/Nepxion/DiscoveryDesktop),在target目录下产生discovery-desktop-release

### 启动控制台
- 通过[https://github.com/Nepxion/DiscoveryTool](https://github.com/Nepxion/DiscoveryTool)下载最新版本的控制台
- 导入IDE或者编译成Spring Boot程序运行
- 运行之前,先修改src/main/resources/bootstrap.properties的相关配置,包括注册中心和配置中心的地址等

### 启动图形化桌面端
- 修改config/console.properties中的url,指向控制台的地址
- 在Windows操作系统下,运行startup.bat,在Mac或者Linux操作系统下,运行startup.sh

### 登录图形化桌面端

登录认证,用户名和密码为admin/admin或者nepxion/nepxion。控制台支持简单的认证,用户名和密码配置在上述控制台的bootstrap.properties中,使用者可以自己扩展AuthenticationResource并注入,实现更专业的认证功能

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop8.jpg)

## 全链路编排建模
全链路编排建模工具,只提供最经典和最常用的蓝绿灰度发布场景功能,并不覆盖框架所有的功能

### 全链路蓝绿发布编排建模
![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop9.jpg)

① 导航栏上选择〔全链路服务蓝绿发布〕

② 〔全链路服务蓝绿发布〕界面的工具栏上,点击【新建】按钮,弹出【新建配置】对话框。确认下面选项后,点击【确定】按钮后,进行全链路蓝绿发布编排建模

- 〔订阅参数〕项。选择〔局部订阅〕或者〔全局订阅〕,通过下拉菜单〔订阅组名〕和〔订阅服务名〕,〔订阅服务名〕可以选择网关(以网关为发布入口)或者服务(以服务为发布入口)。如果是〔全局订阅〕,则不需要选择〔订阅服务名〕
- 〔部署参数〕项。选择〔域网关模式〕(发布界面上提供只属于〔订阅组〕下的服务列表)或者〔非域网模式〕(发布界面上提供所有服务列表)
- 〔发布策略〕项。选择〔版本策略〕或者〔区域策略〕
- 〔路由类型〕项。选择〔蓝 | 绿 | 兜底〕或者〔蓝 | 兜底〕

根据[全链路版本条件匹配蓝绿发布](#全链路版本条件匹配蓝绿发布)示例中的场景

③ 在〔蓝绿条件〕中,分别输入〔蓝条件〕和〔绿条件〕

- 〔蓝条件〕输入a==1
- 〔绿条件〕输入a==1&&b==2

使用者可以通过〔条件校验〕来判断条件是否正确。例如,在〔绿条件〕区的校验文本框里,输入a=1,执行校验,将提示〔校验结果:false〕,输入a=1;b=2,将提示〔校验结果:true

④ 在〔蓝绿编排〕中,分别选择如下服务以及其版本,并点击【添加】按钮,把路由链路添加到拓扑图上

- 服务discovery-guide-service-a,〔蓝版本〕=1.1,〔绿版本〕=1.0,〔兜底版本〕=1.0
- 服务discovery-guide-service-b,〔蓝版本〕=1.1,〔绿版本〕=1.0,〔兜底版本〕=1.0

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop10.jpg)

⑤ 如果希望内置Header参数,可以〔蓝绿参数〕的文本框中输入

⑥ 全链路编排建模完毕,点击工具栏上【保存】按钮进行保存,也可以先点击【预览】按钮,在弹出的【预览配置】对话框中,确认规则策略无误后再保存。使用者可以访问Nacos界面查看相关的规则策略是否已经存在

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop11.jpg)

⑦ 对于已经存在的策略配置,可以通过点击工具栏上【打开】按钮,在弹出的【打开配置】对话框中,根据上述逻辑相似,确定〔订阅参数〕项后,选择〔打开远程配置〕(载入Nacos上对应的规则策略)或者〔打开本地配置〕(载入本地硬盘上规则策略文件rule.xml)

⑧ 对于已经存在的策略配置,如果想重置清除掉,点击工具栏上【重置】按钮进行重置清除

### 全链路灰度发布编排建模
① 导航栏上选择〔全链路服务灰度发布〕

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop13.jpg)

根据[全链路版本条件权重灰度发布](#全链路版本条件权重灰度发布)示例中的场景

② 在〔灰度条件〕中,〔灰度条件〕(灰度流量占比)选择95%,〔稳定条件〕(稳定流量占比)会自动切换成5%

其它步骤跟[全链路蓝绿发布编排建模](#全链路蓝绿发布编排建模)相似,但比其简单

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop14.jpg)

## 全链路流量侦测

### 全链路蓝绿发布流量侦测
① 导航栏上选择〔全链路服务流量侦测〕

② 在〔侦测入口〕中,操作如下

- 〔类型〕项。选择〔网关〕或者〔服务〕,本示例的规则策略是配置在网关上,所以选择〔网关〕
- 〔协议〕项。选择〔http://〕或者〔https://〕,视网关或者服务暴露出来的协议类型而定,本示例暴露出来的是http协议,所以选择〔http://〕
- 〔服务〕项。选择一个网关名或者服务名,下拉菜单列表随着〔类型〕项的改变而改变,蓝绿发布规则策略是配置在discovery-guide-gateway上,所以选择它
- 〔实例〕项。选择一个网关实例或者服务实例的IP地址和端口,下拉菜单列表随着〔服务〕的改变而改变

③ 在〔侦测参数〕中,操作如下

添加〔Header〕项和〔Parameter〕项,也可以〔Cookie〕项,使用者可以任意选择2个

- 〔Header〕项。输入a=1
- 〔Parameter〕项。输入b=2

④ 在〔侦测链路〕中,操作如下

- 增加服务discovery-guide-service-a
- 增加服务discovery-guide-service-b

⑤ 在〔侦测执行〕中,操作如下

- 〔维护〕项。选择〔版本〕、〔区域〕、〔环境〕、〔可用区〕、〔地址〕或者〔组〕,维护表示在拓扑图上聚合调用场景的维度,本示例的规则策略是是基于版本维度进行发布,所以选择〔版本〕
- 〔次数〕项。选择执行侦测的次数,基于网关和服务的性能压力,使用者需要酌情考虑调用次数
- 〔次数〕项。选择执行侦测的同一时刻线程并发数,并发数是对于图形化桌面端而言的
- 〔成功〕项。用来显示侦测成功的百分比
- 〔失败〕项。用来显示侦测失败的百分比
- 〔耗时〕项。用来显示侦测执行的消耗时间

⑥ 点击工具栏上【开始】按钮开始侦测,在侦测执行过程中,可以点击工具栏上【停止】按钮停止侦测

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop15.jpg)

从上述截图中,可以看到

- 在条件a==1&&b==2的〔绿条件〕下,执行〔网关〕->〔a服务1.0版本〕->〔b服务1.0版本〕的〔绿路由〕

⑦ 点击工具栏上【查看】按钮查看拓扑图上所有节点配置的规则策略,包括局部配置和全局配置

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop16.jpg)

⑧ 支持直接n-d-version策略路由Header驱动的蓝绿发布流量侦测

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop7.jpg)

### 全链路灰度发布流量侦测
① 导航栏上选择〔全链路服务流量侦测〕

② 在〔侦测入口〕中,操作如下

- 〔服务〕项。灰度发布规则策略是配置在discovery-guide-zuul上,所以选择它

③ 在〔侦测参数〕中,不需要输入任何值

④ 在〔侦测执行〕中,〔次数〕项的值越大,灰度权重百分比越准确

其它步骤跟[全链路蓝绿发布流量侦测](#全链路蓝绿发布流量侦测)相似,但比其简单

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop17.jpg)

从上述截图中,可以看到

- 执行〔网关〕->〔a服务1.1版本〕->〔b服务1.1版本〕的〔灰度路由〕权重百分比95%左右
- 执行〔网关〕->〔a服务1.0版本〕->〔b服务1.0版本〕的〔稳定路由〕权重百分比5%左右

### 全链路蓝绿灰度发布混合流量侦测
① 全链路蓝绿发布 + 灰度发布混合模式下流量侦测

在网关上配置了蓝绿发布规则策略,在a服务上配置了灰度发布规则策略

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop5.jpg)

② 全链路灰度发布 + 蓝绿发布混合模式下流量侦测

在网关上配置了灰度发布规则策略,在a服务上配置了蓝绿发布规则策略

![](https://nepxion.github.io/Discovery/docs/discovery-doc/DiscoveryDesktop6.jpg)

## Star走势图
[![Stargazers over time](https://starchart.cc/Nepxion/Discovery.svg)](https://starchart.cc/Nepxion/Discovery)
16 changes: 16 additions & 0 deletions _coverpage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
![logo](_media/Logo64.png)

# Nepxion Discovery Desktop<small>1.1.0</small>

> 专注于企业级云原生微服务开源解决方案
- 蓝绿灰度发布、同城异地多活、链路路由智能编排
- 版本偏好、区域调试、环境隔离、可用区亲和
- 服务故障转移、实例无损下线、流量染色
- 统一配置订阅、运维对接、异步探针
- 网关动态路由、断言器和过滤器
- 调用链埋点、日志、指标监控
- 限流熔断降级授权防护扩展
- 全链路自动化侦测测试

[GitHub](https://github.com/Nepxion/DiscoveryDesktop/)
[Get Started](#Discovery【探索】云原生微服务解决方案)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole15.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole17.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole18.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryConsole9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryDesktop1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryDesktop10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryDesktop11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryDesktop12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/discovery-doc/DiscoveryDesktop13.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop14.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop15.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop16.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop17.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop2.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop3.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop4.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop5.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop6.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop7.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop8.jpg
Binary file added docs/discovery-doc/DiscoveryDesktop9.jpg
103 changes: 103 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<title>Nepxion Discovery Platform</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="keywords" content="Nepxion Discovery Platform" />
<meta name="description" content="Nepxion Discovery Platform" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css" title="vue" />
<link rel="stylesheet" href="./vendor/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="./vendor/mermaid/dist/mermaid.min.css">
<script src="./vendor/mermaid/dist/mermaid.min.js"></script>
<link rel="icon" href="_media/Logo32.png" />
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?07fb594e42a71f84528d48242ada976d";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="app">Loading ...</div>
<script>
window.$docsify = {
name: 'Nepxion Discovery Platform',
// homepage: 'https://gitee.com/Nepxion/DiscoveryPlatform/blob/wiki/README.md',
nameLink: 'https://github.com/Nepxion/DiscoveryPlatform',
repo: 'https://github.com/Nepxion/DiscoveryPlatform',
markdown: {
renderer: {
code: function (code, lang) {
if (lang === "mermaid") {
return (
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
);
}
return this.origin.code.apply(this, arguments);
}
}
},
search: {
noData: {
'/zh/': '没有结果',
'/en/': 'No results',
'/': '没有结果',
},
paths: 'auto',
placeholder: {
'/zh/': '搜索',
'/en/': 'Search',
'/': '搜索',
},
},
copyCode: {
buttonText: {
'/zh/': '点击复制',
'/en/': 'Copy to clipboard',
'/': '点击复制',
},
errorText: {
'/zh/': '错误',
'/en/': 'Error',
'/': '错误',
},
successText: {
'/zh/': '复制成功',
'/en': 'Copied',
'/': '复制成功',
},
},
disqus: 'shortname',
coverpage: true,
auto2top: true
}
</script>
<script src="./vendor/docsify/lib/docsify.min.js"></script>
<!-- plugins -->
<!-- support search -->
<script src="./vendor/docsify/lib/plugins/search.js"></script>
<!-- medium's image zoom -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<!-- add a simple Click to copy button to all preformatted code blocks to effortlessly allow users to copy example code from your docs -->
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<!--emoji-->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
<!-- code highlight -->
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-csharp.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-java.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-markdown.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-nginx.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-properties.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-sql.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-xml-doc.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-yaml.min.js"></script>
</body>
</html>
Binary file removed lib/alloy-skin-1.4.4.jar
Binary file not shown.
Binary file removed lib/jcalendar-1.3.4.200905090658.jar
Binary file not shown.
Binary file removed lib/jdesktop-swing-worker-1.2.jar
Binary file not shown.
Binary file removed lib/jdesktop-swingx-1.0.jar
Binary file not shown.
Binary file removed lib/jide-oss-2.9.7.jar
Binary file not shown.
Binary file removed lib/l2fprod-common-all-7.3.jar
Binary file not shown.
Binary file removed lib/nepxion-cots-1.0.0.jar
Binary file not shown.
Binary file removed lib/nepxion-swing-1.0.0.jar
Binary file not shown.
Binary file removed lib/nepxion-util-1.0.0.jar
Binary file not shown.
Binary file removed lib/twaver-3.7.jar
Binary file not shown.
Binary file removed lib/twaver-gis-3.7.jar
Binary file not shown.
Binary file removed lib/twaver-layouter-3.7.jar
Binary file not shown.
Loading

0 comments on commit 5675b1d

Please sign in to comment.