Firstsawyou commented on a change in pull request #3366:
URL: https://github.com/apache/apisix/pull/3366#discussion_r561595034



##########
File path: doc/zh-cn/plugins/traffic-split.md
##########
@@ -55,12 +55,15 @@ traffic-split 插件使用户可以逐步引导各个上游之间的流量百分
 
 traffic-split 插件主要由 `match` 和 `weighted_upstreams` 两部分组成,`match` 
是自定义的条件规则,`weighted_upstreams` 是 upstream 的配置信息。如果配置 `match` 和 
`weighted_upstreams` 信息,那么在 `match` 规则校验通过后,会根据 `weighted_upstreams` 中的 
`weight` 值;引导插件中各个 upstream 之间的流量比例,否则,所有流量直接到达 `route` 或 `service` 上配置的 
`upstream`。当然你也可以只配置 `weighted_upstreams` 部分,这样会直接根据 `weighted_upstreams` 中的 
`weight` 值,引导插件中各个 upstream 之间的流量比例。
 
->注:1、在 `match` 里,vars 中的表达式是 `and` 的关系,多个 `vars` 之间是 `or` 的关系。2、在插件的 
weighted_upstreams 中只有 `weight` 值,表示到达 `route` 或 `service` 上配置的 upstream 
流量权重值。如:
+>注:1、在 `match` 里,vars 中的表达式是 `and` 的关系,多个 `vars` 之间是 `or` 的关系。2、在插件的 
weighted_upstreams 中,若存在单独的 `weight` 字段,表示到达 `route` 或 `service` 上的 upstream 
流量权重值。如:

Review comment:
       updated. @tokers 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to