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
38b1849c
Commit
38b1849c
authored
Aug 06, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加基于随机权重的平滑灰度发布功能
parent
e36f6fb3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
discovery-springcloud-example-service/src/main/resources/rule.xml
+4
-3
No files found.
discovery-springcloud-example-service/src/main/resources/rule.xml
View file @
38b1849c
...
@@ -68,11 +68,11 @@
...
@@ -68,11 +68,11 @@
<!-- version-value,表示版本对应的权重值,格式为"版本值=权重值",如果多个用“;”分隔,不允许出现空格 -->
<!-- version-value,表示版本对应的权重值,格式为"版本值=权重值",如果多个用“;”分隔,不允许出现空格 -->
<!-- 权重策略介绍 -->
<!-- 权重策略介绍 -->
<!-- 1. 标准配置,举例如下 -->
<!-- 1. 标准配置,举例如下 -->
<!-- <service consumer-service-name="a" provider-service-name="b" provider-weight-value="1.0=
70;1.1=30"/> 表示消费端访问提供端的时候,提供端的1.0版本提供70%的权重流量,1.1版本提供3
0%的权重流量 -->
<!-- <service consumer-service-name="a" provider-service-name="b" provider-weight-value="1.0=
90;1.1=10"/> 表示消费端访问提供端的时候,提供端的1.0版本提供90%的权重流量,1.1版本提供1
0%的权重流量 -->
<!-- 2. 尽量为线上所有版本都赋予权重值 -->
<!-- 2. 尽量为线上所有版本都赋予权重值 -->
<weight>
<weight>
<!-- 表示消费端服务b访问提供端服务c的时候,提供端服务c的1.0版本提供
70%的权重流量,1.1版本提供3
0%的权重流量 -->
<!-- 表示消费端服务b访问提供端服务c的时候,提供端服务c的1.0版本提供
90%的权重流量,1.1版本提供1
0%的权重流量 -->
<service
consumer-service-name=
"discovery-springcloud-example-b"
provider-service-name=
"discovery-springcloud-example-c"
provider-weight-value=
"1.0=
70;1.1=3
0"
/>
<service
consumer-service-name=
"discovery-springcloud-example-b"
provider-service-name=
"discovery-springcloud-example-c"
provider-weight-value=
"1.0=
90;1.1=1
0"
/>
</weight>
</weight>
</discovery>
</discovery>
</rule>
</rule>
\ No newline at end of file
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