zh-translation/docs/reference/config/proxy_extensions/wasm_telemetry/index.md (#9285)

* translation wasm_tememetry doc

* update wasm_telemetry/index.md file

* refine wasm_tememetry doc
This commit is contained in:
k-9527 2021-03-18 22:23:15 +08:00 committed by GitHub
parent 319c0050ee
commit 58f979fabf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
---
title: 基于 Wasm 的遥测[实验特性]
description: 如何使用 Wasm 进行遥测。
weight: 60
owner: istio/wg-policies-and-telemetry-maintainers
test: no
aliases:
- /zh/docs/reference/config/telemetry/telemetry_v2_with_wasm/
---
默认情况下,遥测默认启用并作为一个 `filter` 被编译在 Istio 代理中,同时也被编译成 WebAssembly (Wasm) 模块,并随 Istio proxy 一起发布。若要使用 Wasm 进行遥测,请使用 `preview` 属性安装 Istio 。
{{< text bash >}}
$ istioctl install --set profile=preview
{{< /text >}}
或者,设置以下两个参数,使用 `default` 属性启用基于 Wasm 的遥测:
{{< text bash >}}
$ istioctl install --set values.telemetry.v2.metadataExchange.wasmEnabled=true --set values.telemetry.v2.prometheus.wasmEnabled=true
{{< /text >}}
{{< warning >}}
基于 Wasm 的遥测存在几个已知的局限性:
* 代理 CPU 的使用将在 Wasm 模块加载阶段(例如:当上述配置被应用时)达到高峰。增加代理 CPU 资源限制将有助于加速加载。
* 当代理基线资源使用增加时,根据初步的性能测试结果运行基于 Wasm 的遥测要比默认安装环境多花费 30%~50% 的 CPU并使内存使用量增加一倍。
性能问题将在接下来的版本中不断改进。
{{</ warning>}}