Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
discovery
Commits
e9fc682a
Commit
e9fc682a
authored
Jul 03, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改介绍
parent
2f312e3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
README.md
+7
-0
No files found.
README.md
View file @
e9fc682a
...
@@ -441,6 +441,9 @@ spring-cloud-consul的2.0.0.RELEASE(目前最新的稳定版)支持consul-ap
...
@@ -441,6 +441,9 @@ spring-cloud-consul的2.0.0.RELEASE(目前最新的稳定版)支持consul-ap
-
通过Postman或者浏览器,执行POST
[
http://localhost:5200/config/send
](
http://localhost:5200/config/send
)
,发送新的规则XML(内容见下面),表示B服务的所有版本都只能访问C服务3.0版本,而本例中C服务3.0版本是不存在的,意味着B服务不能访问C服务
-
通过Postman或者浏览器,执行POST
[
http://localhost:5200/config/send
](
http://localhost:5200/config/send
)
,发送新的规则XML(内容见下面),表示B服务的所有版本都只能访问C服务3.0版本,而本例中C服务3.0版本是不存在的,意味着B服务不能访问C服务
-
访问
[
http://localhost:5201/config/send
](
http://localhost:5201/config/send
)
,重复4.1步骤
-
访问
[
http://localhost:5201/config/send
](
http://localhost:5201/config/send
)
,重复4.1步骤
-
重复3.1步骤,发现调用路径只有A服务->B服务,符合逻辑,灰度版本控制成功
-
重复3.1步骤,发现调用路径只有A服务->B服务,符合逻辑,灰度版本控制成功
-
负载均衡的灰度测试
-
通过Postman或者浏览器,执行POST
[
http://localhost:1100/invoke
](
http://localhost:1100/invoke
)
,这是example内置的单条路由实例(通过Feign实现)
-
重复“灰度版本切换”或者“灰度版本控制”操作,查看Ribbon负载均衡的灰度结果,如图6。特别注意,结果视Ribbon的同步速度,默认情况下会有几秒延迟
-
其它更多操作,请参考“管理中心”和“路由中心”,不一一阐述了
-
其它更多操作,请参考“管理中心”和“路由中心”,不一一阐述了
新XML规则
新XML规则
...
@@ -467,6 +470,10 @@ spring-cloud-consul的2.0.0.RELEASE(目前最新的稳定版)支持consul-ap
...
@@ -467,6 +470,10 @@ spring-cloud-consul的2.0.0.RELEASE(目前最新的稳定版)支持consul-ap


图6

### 切换服务注册组件
### 切换服务注册组件
如果使用者想改变服务注册组件,请在discovery-springcloud-example/pom.xml进行切换
如果使用者想改变服务注册组件,请在discovery-springcloud-example/pom.xml进行切换
```
xml
```
xml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment