This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 412c6d9 Some description about nacosRegistry feature (#746)
412c6d9 is described below
commit 412c6d9e023fe058d60da1da48df7eed0862022c
Author: 赵延 <[email protected]>
AuthorDate: Thu Mar 11 18:45:12 2021 +0800
Some description about nacosRegistry feature (#746)
* Some typo and error link fix.
* nacos preserved key support description.
---
content/en/docs/v2.7/user/references/registry/nacos.md | 12 ++++++++++++
content/zh/docs/v2.7/user/references/registry/nacos.md | 13 +++++++++++++
2 files changed, 25 insertions(+)
diff --git a/content/en/docs/v2.7/user/references/registry/nacos.md
b/content/en/docs/v2.7/user/references/registry/nacos.md
index 0b39752..4b6847e 100644
--- a/content/en/docs/v2.7/user/references/registry/nacos.md
+++ b/content/en/docs/v2.7/user/references/registry/nacos.md
@@ -124,3 +124,15 @@ Similar to [Dubbo Spring Externalization
Configuration](https://mercyblitz.githu
After restarting the Dubbo app, you can also find that the registration
meta-information of the service provider and consumer is presented on the Nacos
console:

+
+
+Additional information: since [email protected], support client report
instance info which contains particular key in metadata to control some
behavior.
+such as:
+`preserved.heart.beat.timeout` : The time of the instance from healthy to
unhealthy after heartbeat is not send.(unit:millisecond)
+`preserved.ip.delete.timeout` : The time of the instance is dropped by
server after the heartbeat is not send.(unit:millisecond)
+`preserved.heart.beat.interval` : The interval of the instance to send
heartbeat (unit:millisecond)
+`preserved.instance.id.generator`: The id generator strategy, value set as
`snowflake` means the id will be increment from 0.
+`preserved.register.source` : Reserved key, not used at now.
+
+This feature will be support since [email protected], you can use this feature by
append param in nacos address.
+Such as:
`nacos://10.20.153.10:8848?preserved.heart.beat.timeout=15000&preserved.ip.delete.timeout=30000&preserved.heart.beat.interval=10000`
diff --git a/content/zh/docs/v2.7/user/references/registry/nacos.md
b/content/zh/docs/v2.7/user/references/registry/nacos.md
index 71a517e..ae32aa2 100644
--- a/content/zh/docs/v2.7/user/references/registry/nacos.md
+++ b/content/zh/docs/v2.7/user/references/registry/nacos.md
@@ -119,3 +119,16 @@ dubbo.registry.address = nacos://10.20.153.10:8848
重启 Dubbo 应用后,您同样也能发现服务提供方和消费方的注册元信息呈现在 Nacos 控制台中:

+
+
+附加信息: 在nacos-server 1.0.0版本后,支持客户端通过上报一些包含特定的元数据的实例到服务端来控制实例的一些行为。
+例如:
+`preserved.heart.beat.timeout` : 该实例在不发送心跳后,从健康到不健康的时间。(单位:毫秒)
+`preserved.ip.delete.timeout` : 该实例在不发送心跳后,被服务端下掉该实例的时间。(单位:毫秒)
+`preserved.heart.beat.interval` : 该实例在客户端上报心跳的间隔时间。(单位:毫秒)
+`preserved.instance.id.generator`: 该实例的id生成策略,值为`snowflake`时,从0开始增加。
+`preserved.register.source` : 保留键,目前未使用。
+
+该功能将在Dubbo-2.7.10开始支持,通过在address中增加参数来进行配置.
+例如:
`nacos://10.20.153.10:8848?preserved.heart.beat.timeout=15000&preserved.ip.delete.timeout=30000&preserved.heart.beat.interval=10000`
+