Skip to content

Commit

Permalink
docs: weighted_upstreams of traffic-split support configuring scheme …
Browse files Browse the repository at this point in the history
…field

Signed-off-by: Nic <[email protected]>
  • Loading branch information
nic-6443 committed Nov 13, 2024
1 parent a91e79a commit 557f157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/latest/plugins/traffic-split.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The traffic ratio between Upstream services may be less accurate since round rob

:::note

Some of the configuration fields supported in Upstream are not supported in weighted_upstreams.upstream. These fields are `service_name`, `discovery_type`, `checks`, `retries`, `retry_timeout`, `desc`, `scheme`, `labels`, `create_time`, and `update_time`.
Some of the configuration fields supported in Upstream are not supported in weighted_upstreams.upstream. These fields are `service_name`, `discovery_type`, `checks`, `retries`, `retry_timeout`, `desc`, `labels`, `create_time`, and `update_time`.

As a workaround, you can create an Upstream object and configure it in `weighted_upstreams.upstream_id` to achieve these functionalities.

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/latest/plugins/traffic-split.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ description: 本文介绍了 Apache APISIX traffic-split 插件的相关操作

:::note 注意

目前 `weighted_upstreams.upstream` 的配置不支持 `service_name``discovery_type``checks``retries``retry_timeout``desc``scheme``labels``create_time``update_time` 等字段。如果你需要使用这些字段,可以在创建上游对象时指定这些字段,然后在该插件中配置 `weighted_upstreams.upstream_id` 属性即可。
目前 `weighted_upstreams.upstream` 的配置不支持 `service_name``discovery_type``checks``retries``retry_timeout``desc``labels``create_time``update_time` 等字段。如果你需要使用这些字段,可以在创建上游对象时指定这些字段,然后在该插件中配置 `weighted_upstreams.upstream_id` 属性即可。

:::

Expand Down

0 comments on commit 557f157

Please sign in to comment.