You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/06/18 04:01:04 UTC

[incubator-shenyu-website] branch main updated: Update register-center-instance doc (#608)

This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 5b63328118 Update register-center-instance doc (#608)
5b63328118 is described below

commit 5b63328118f3068e938fb8a7832fe127446a73e9
Author: renzhuyan <40...@qq.com>
AuthorDate: Sat Jun 18 12:00:59 2022 +0800

    Update register-center-instance doc (#608)
---
 docs/user-guide/register-center-instance.md              | 16 +++++++++++++++-
 .../current/user-guide/register-center-instance.md       | 14 ++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/docs/user-guide/register-center-instance.md b/docs/user-guide/register-center-instance.md
index 00aedadfb7..cf81a67150 100644
--- a/docs/user-guide/register-center-instance.md
+++ b/docs/user-guide/register-center-instance.md
@@ -4,7 +4,7 @@ keywords: ["register center"]
 description: Register Instance
 ---
 
-This document will introduce how to register the gateway instance to the registry. The `Apache ShenYu` gateway currently supports registration to `zookeeper` and `etcd`.
+This document will introduce how to register the gateway instance to the registry. The `Apache ShenYu` gateway currently supports registration to `zookeeper` , `etcd` and `consul`.
 
 ### Add Maven dependency
 
@@ -50,4 +50,18 @@ instance:
       etcdTTL: 5 #Optional, default 5
 ```
 
+### Use consul
+
+Add the following configuration to the gateway's `yml` file:
+
+```yaml
+instance:
+    enabled: true
+    registerType: consul
+    serverLists: localhost:8848 #config with your consul address, used by the cluster environment, separated with (,).
+    props:
+      consulTimeout: 3000 #Optional, default 3000
+      consulTTL: 3000 #Optional, default 3000
+```
+
 > After the configuration is complete, start the gateway and it will successfully register to the corresponding registration center.
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/register-center-instance.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/register-center-instance.md
index 5a13cf4b8e..4059be3b32 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/register-center-instance.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/register-center-instance.md
@@ -49,4 +49,18 @@ instance:
       etcdTTL: 5 #可选,默认5
 ```
 
+### 使用consul
+
+在网关的 `yml` 文件中添加如下配置:
+
+```yaml
+instance:
+    enabled: true
+    registerType: consul
+    serverLists: localhost:8848 #配置成你的 consul 地址,集群环境请使用(,)分隔。
+    props:
+      consulTimeout: 3000 #可选,默认3000
+      consulTTL: 3000 #可选,默认3000
+```
+
 > 配置完成后,启动网关,就会成功注册到相应注册中心。