From bdfbf8bbe7dcddd20cab7aa337eb0e991c89c737 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 30 Apr 2024 15:12:58 +0800 Subject: [PATCH 01/10] =?UTF-8?q?fix(mogdb):enable=5Ffence=5Fdn=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cm-configuration-parameter/cm-cm_agent.md | 2 +- .../cm-configuration-parameter/cm-cm_agent.md | 2 +- .../cm-configuration-parameter/cm-cm_agent.md | 2 +- .../cm-configuration-parameter/cm-cm_agent.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md index 3e591fc8..1db37658 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md @@ -271,4 +271,4 @@ Application scope: Files in the **$GAUSSLOG/cm/cm_ctl**, **$GAUSSLOG/cm/cm_serve - **on**, **yes**, **true**, or **1**: The DN process is restarted. - **off**, **no**, **false**, or **0**: The DN process is not restarted. -**Default value**: \ No newline at end of file +**Default value**: off \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md index 3e591fc8..1db37658 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md @@ -271,4 +271,4 @@ Application scope: Files in the **$GAUSSLOG/cm/cm_ctl**, **$GAUSSLOG/cm/cm_serve - **on**, **yes**, **true**, or **1**: The DN process is restarted. - **off**, **no**, **false**, or **0**: The DN process is not restarted. -**Default value**: \ No newline at end of file +**Default value**: off \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md index b2bf4ca2..b8e9ea90 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md @@ -327,7 +327,7 @@ date: 2023-04-07 - on、yes、true、1:表示重启datanode进程。 - off、no、false、0:表示不重启datanode进程。 -**默认值**: +**默认值**:off ## event_triggers diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md index 7ad48474..322861b0 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md @@ -327,7 +327,7 @@ date: 2023-04-07 - on、yes、true、1:表示重启datanode进程。 - off、no、false、0:表示不重启datanode进程。 -**默认值**: +**默认值**:off ## event_triggers -- Gitee From ebff78e07f8a596b746178c235c1f2393ba5fcda Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 30 Apr 2024 17:45:06 +0800 Subject: [PATCH 02/10] =?UTF-8?q?fix(mogdb):5.0=E6=96=B0=E5=A2=9E=E9=AB=98?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=8C=87=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../about-mogdb/mogdb-new-feature/5.0.6.md | 2 +- .../high-availability/13-dcf.md | 2 +- .../high-availability/14-cm.md | 2 +- ...omponent-supporting-two-node-deployment.md | 2 +- .../cm-dual-network-segment-deployment.md | 4 ++-- ...vailability-based-on-the-paxos-protocol.md | 2 +- .../maintainability/dcf-module-tracing.md | 2 +- .../cluster-management/cluster-management.md | 0 .../cm-configuration-parameter/cm-cm_agent.md | 2 +- .../cm-cm_server.md | 0 .../cm-configuration-parameter.md | 0 .../feature-introduction.md | 8 ++++--- .../introduction-to-cm_ctl-tool.md | 0 .../introduction-to-cm_persist.md | 2 +- ...to-installation-and-uninstallation-tool.md | 8 +++---- .../manual-configuration-of-vip.md | 0 .../cluster-management/safety-design.md | 2 +- .../high-available-dcf.md} | 21 +++++++++-------- .../high-available-guide.md | 11 +++++++++ .../guc-parameters/cm-parameters.md | 2 +- .../sql-reference/sql-reference.md | 1 - .../tool-reference/tool-reference.md | 1 - product/zh/docs-mogdb/v5.0/toc.md | 23 ++++++++++--------- .../docs-mogdb/v5.0/toc_datatypes-and-sql.md | 1 - .../zh/docs-mogdb/v5.0/toc_high_available.md | 17 ++++++++++++++ .../v5.0/toc_parameters-and-tools.md | 10 -------- 26 files changed, 72 insertions(+), 53 deletions(-) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cluster-management.md (100%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_agent.md (99%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_server.md (100%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md (100%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/feature-introduction.md (99%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_ctl-tool.md (100%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_persist.md (98%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-installation-and-uninstallation-tool.md (96%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/manual-configuration-of-vip.md (100%) rename product/zh/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/safety-design.md (95%) rename product/zh/docs-mogdb/v5.0/{reference-guide/sql-reference/sql-reference-dcf.md => high-available-guide/high-available-dcf.md} (99%) create mode 100644 product/zh/docs-mogdb/v5.0/high-available-guide/high-available-guide.md create mode 100644 product/zh/docs-mogdb/v5.0/toc_high_available.md diff --git a/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md b/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md index 40f061b4..04cf16f8 100644 --- a/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md +++ b/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md @@ -127,7 +127,7 @@ MogDB对读写请求的处理全部放在事务机制下,这与Oracle读不启 **相关页面**:[MogDB/CM/PTK支持双网段](../../characteristic-description/high-availability/cm-dual-network-segment-deployment.md) -5. CM新增参数[enable_async_standby_promotion](../../reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md#enable_async_standby_promotion)来控制两节点部署模式下是否允许异步备机升主,提高用户对HA行为的控制 +5. CM新增参数[enable_async_standby_promotion](../../high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md#enable_async_standby_promotion)来控制两节点部署模式下是否允许异步备机升主,提高用户对HA行为的控制
diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md index 7970535d..daca3126 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md @@ -51,4 +51,4 @@ DCF支持手动模式是针对集群级的工作模式的设置,在此工作 ## 相关页面 -[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md index 4c3b3a88..e992bbc1 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md @@ -64,4 +64,4 @@ CM支持对外状态查询和推送能力。同时,支持两节点部署模式 ## 相关页面 -[集群管理](../../reference-guide/tool-reference/cluster-management/cluster-management.md) \ No newline at end of file +[集群管理](../../high-available-guide/cluster-management/cluster-management.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md index 4023fb31..0f99ef75 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md @@ -31,4 +31,4 @@ CM集群是一个具备高可用性的数据库集群解决方案。通过支持 ## 相关页面 -[集群管理](../../reference-guide/tool-reference/cluster-management/cluster-management.md),[CM支持两节点部署](../../reference-guide/tool-reference/cluster-management/feature-introduction.md#cm支持两节点部署),[CM两节点故障问题定位](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file +[集群管理](../../high-available-guide/cluster-management/cluster-management.md),[CM支持两节点部署](../../high-available-guide/cluster-management/feature-introduction.md#cm支持两节点部署),[CM两节点故障问题定位](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-dual-network-segment-deployment.md b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-dual-network-segment-deployment.md index a82043e5..68a184f9 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-dual-network-segment-deployment.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/cm-dual-network-segment-deployment.md @@ -35,7 +35,7 @@ MogDB/CM/PTK支持双网段场景的系统部署。 PTK对CM实现了适配,安装时在config.yaml文件中配置参数[ha_ips](https://docs.mogdb.io/zh/ptk/v1.1/config#ha_ips)即可实现双网段部署。ha_ips需要配置在db_servers的每个节点下,此参数是一个列表,列表内配置第二个网段的IP,目前最多支持配置一个IP。 -两节点部署(一主一备),需要在yaml配置文件中配置[third_party_gateway_ip](../../reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md#third_party_gateway_ip)参数(单网段的三方网关)为双网段参数,以逗号分隔,如`third_party_gateway_ip: 172.0.0.17,10.0.0.17`。 +两节点部署(一主一备),需要在yaml配置文件中配置[third_party_gateway_ip](../../high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md#third_party_gateway_ip)参数(单网段的三方网关)为双网段参数,以逗号分隔,如`third_party_gateway_ip: 172.0.0.17,10.0.0.17`。 单网段部署时,third_party_gateway_ip只需要配置一个IP;双网段部署时,third_party_gateway_ip需要配置两个网段的三方网关ip,以`,`分隔。 @@ -172,4 +172,4 @@ DCF(分布式共识框架(Distributed Consensus Framework))、DCC(分布 ## 相关页面 -[统一数据库管理工具](../../reference-guide/tool-reference/cluster-management/cluster-management.md)、[PTK配置文件字段说明](https://docs.mogdb.io/zh/ptk/v1.1/config)、[DCF](./13-dcf.md) +[统一数据库管理工具](../../high-available-guide/cluster-management/cluster-management.md)、[PTK配置文件字段说明](https://docs.mogdb.io/zh/ptk/v1.1/config)、[DCF](./13-dcf.md) diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md index 9fa9a505..240efc97 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md @@ -38,4 +38,4 @@ DCF模式开关开启后,数据库节点可以支持基于Paxos协议的复制 ## 相关页面 -[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md b/product/zh/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md index 402a43ac..c8c28477 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md @@ -31,4 +31,4 @@ DCF是MogDB内部的一个关键模块,负责处理分布式环境下的数据 ## 相关页面 -[gstrace](../../reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md),[enable_dcf](../../reference-guide/guc-parameters/DCF-parameters-settings.md#enable_dcf),[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[gstrace](../../reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md),[enable_dcf](../../reference-guide/guc-parameters/DCF-parameters-settings.md#enable_dcf),[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cluster-management.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cluster-management.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cluster-management.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cluster-management.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md similarity index 99% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md index b8e9ea90..c5e8c31f 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md @@ -320,7 +320,7 @@ date: 2023-04-07 ## enable_fence_dn -**参数说明**:cm_agent连不上任何除了自身节点的cms,并且自身节点cms不是Primary时,设置是否重启datanode进程。 +**参数说明**:cm_agent连不上任何除了自身节点的cms,并且自身节点cms不是Primary时,设置是否重启datanode进程。 **取值范围**:布尔型。修改后可以reload生效,参数修改请参考[表 set cm参数](./../introduction-to-cm_ctl-tool.md#setcm)进行设置。 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/feature-introduction.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/feature-introduction.md similarity index 99% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/feature-introduction.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/feature-introduction.md index 69808dea..7ddf801b 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/feature-introduction.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/feature-introduction.md @@ -101,7 +101,7 @@ cm_server是用来进行数据库实例管理和实例仲裁的组件。主要 - 资源配置 - 资源配置文件cm_resource.json,文件包含所有自定义资源的相关属性,可以通过cm_ctl res命令对配置文件修改。不支持动态生效,修改配置文件后需要重启cm才能生效。 + 资源配置文件cm_resource.json,文件包含所有自定义资源的相关属性,可以通过`cm_ctl res`命令对配置文件修改。不支持动态生效,修改配置文件后需要重启cm才能生效。 - 客户端 @@ -113,7 +113,7 @@ cm_server是用来进行数据库实例管理和实例仲裁的组件。主要 - 手动启停资源 - 可以通过cm_ctl start/stop -n -I命令实现资源实例的启停操作,详细参见 [工具介绍](./introduction-to-cm_ctl-tool.md)。 + 可以通过`cm_ctl start/stop -n -I`命令实现资源实例的启停操作,详细参见[工具介绍](./introduction-to-cm_ctl-tool.md)。 - 自定义资源状态 @@ -282,6 +282,7 @@ cm_server是用来进行数据库实例管理和实例仲裁的组件。主要 - restart_times: 周期内最多重启次数,超过则不再重启,并将资源标记为不可用,取值范围[0,9999],0表示无限重启。 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-warning.gif) **注意:** + > > 资源配置文件需要在所有节点上都有,且保持一致 。 > > 用户需要保证资源脚本能够正确运行 。 @@ -603,8 +604,9 @@ cm_server是用来进行数据库实例管理和实例仲裁的组件。主要 ``` > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-warning.gif) **注意:** + > > 使用cm的自定义资源管理功能需将进程放到后台执行,所以需要将日志输出重定向至日志文件或配置日志输出相关选项,并且使用nohup和&将本程序放置到后台运行。 本程序需要运行在有数据库的节点;如果在集群发生切换时需要使用主备信息主动推送功能,则需要将该程序运行在集群中所有数据库节点。 - + 2. 启动集群,即可通过浏览器等访问上述集群或节点信息查询接口查询对应信息。 3. 应用端开发(可参考源码仓库的demo),启动应用端。 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_persist.md similarity index 98% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_persist.md index 527ccd5c..09f6dbac 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_persist.md @@ -44,6 +44,6 @@ cm_persist工具用来在资源池化设备上实现抢占磁盘锁功能。该 在指定的磁盘偏移地址上抢占磁盘锁。 -- -?,–help +- -?,--help 打印帮助信息。 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md similarity index 96% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md index 8ef0e435..4dec1c24 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md @@ -50,18 +50,18 @@ cm_uninstall -X XMLFILE [-e envFile] [--deleteData] [--deleteBinary] 环境变量文件的路径,默认值为"~/.bashrc"。 -- –cmpkg +- --cmpkg CM包的路径。 -- –deleteData +- --deleteData 删除CM数据目录,默认不删除。 -- –deleteBinary +- --deleteBinary 删除CM相关二进制,包括om_monitor、cm_agent、cm_server、cm_ctl,默认不删除。 -- -?, –help +- -?, --help 显示帮助信息。 \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/manual-configuration-of-vip.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/manual-configuration-of-vip.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/safety-design.md b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/safety-design.md similarity index 95% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/safety-design.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/safety-design.md index 49dbab9c..76fbbc4e 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/safety-design.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/cluster-management/safety-design.md @@ -11,7 +11,7 @@ date: 2023-04-07 - 创建自认证证书 - 自认证证书生成请参考([证书生成](../../../security-guide/security/1-client-access-authentication.md#证书生成))。 + 自认证证书生成请参考([证书生成](../../security-guide/security/1-client-access-authentication.md#证书生成))。 对私钥密码的保护,使用cm encrypt工具,请参考[cm_ctl工具介绍](./introduction-to-cm_ctl-tool.md)。 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference-dcf.md b/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md similarity index 99% rename from product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference-dcf.md rename to product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md index 005573d7..b40832e7 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference-dcf.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md @@ -68,10 +68,11 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 流控算法主要流程如[图2](#dcf2)所示: **图 2** 流控算法流程 + ![流控算法流程](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/sql-reference-dcf-2.PNG) - + 核心算法流程如下: - + 1. DCF主节点周期性采样和计算共识信息:这里的共识信息主要是端到端达成共识的时延、端到端达成共识的日志带宽、系统整体日志回放带宽。 2. 计算控制量:主节点根据本次采样结果和历史结果,得出性能变化趋势,根据历史控制量的值和变化趋势调整本次控制方向和控制步长,朝更优性能方向计算得出新的控制量。 3. 控制周期到达后,更新控制量。 @@ -87,7 +88,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 每行信息均有注释进行说明。加粗字体内容为DCF相关内容。示例如下: -``` +```xml @@ -120,7 +121,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 使用gs_ctl查询集群状态。 - ``` + ```shell # gs_ctl query –D # gs_ctl query -D /nvme0/gaussdb/cluster/nvme0/dn1 HA state: @@ -160,13 +161,13 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 若在线增加副本,执行以下一条命令即可。 - ``` + ```shell # gs_ctl member --operation=add --nodeid= --ip= --port= -D ``` 若需在线降副本,执行下面命令: - ``` + ```shell # gs_ctl member --operation=remove --nodeid= -D ``` @@ -178,7 +179,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 使用命令如下: - ``` + ```shell # cm_ctl setrunmode -n -D --xmode=minority --votenum= ``` @@ -186,7 +187,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 加回命令为: - ``` + ```shell # cm_ctl setrunmode -n -D --xmode=normal --votenum= ``` @@ -196,7 +197,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 例如节点备升主操作命令: - ``` + ```shell # cm_ctl switchover –n -D ``` @@ -206,6 +207,6 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 命令示例如下: - ``` + ```shell gs_ctl build -b full -D ``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-guide.md b/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-guide.md new file mode 100644 index 00000000..367df89d --- /dev/null +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-guide.md @@ -0,0 +1,11 @@ +--- +title: 高可用指南 +summary: 高可用指南 +author: Guo Huan +date: 2024-04-30 +--- + +# 高可用指南 + +- **[DCF(Distributed Consensus Framework)](./high-available-dcf.md)** +- **[CM(Cluster Manager)](./cluster-management/cluster-management.md)** \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md index 55f4211d..5008d368 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md @@ -7,4 +7,4 @@ date: 2023-04-07 # CM相关参数 -CM相关参数的修改对MogDB的运行机制有影响,建议由MogDB工程师协助修改。修改CM相关参数的方法,请参考[CM配置参数介绍](../tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md)进行设置。 +CM相关参数的修改对MogDB的运行机制有影响,建议由MogDB工程师协助修改。修改CM相关参数的方法,请参考[CM配置参数介绍](../../high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md)进行设置。 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md b/product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md index 27d42026..7f6204b7 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md @@ -19,7 +19,6 @@ date: 2023-04-07 - **[DML语法一览表](dml-syntax-overview.md)** - **[DCL语法一览表](dcl-syntax-overview.md)** - **[子查询](sub-query.md)** -- **[DCF](sql-reference-dcf.md)** - **[LLVM](sql-reference-llvm.md)** - **[别名](alias.md)** - **[锁](sql-reference-lock.md)** diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md index 128598c4..b8c6fa8a 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md @@ -13,7 +13,6 @@ date: 2023-04-07 - **[客户端工具](./client-tool/client-tool.md)** - **[服务端工具](./server-tools/server-tools.md)** - **[系统内部使用的工具](./tools-used-in-the-internal-system/tools-used-in-the-internal-system.md)** -- **[集群管理(Cluster Manager)](./cluster-management/cluster-management.md)** - **[MogDB可运行脚本功能说明](functions-of-mogdb-executable-scripts.md)** - **[gs_collector工具支持收集的系统表和视图列表](system-catalogs-and-views-supported-by-gs_collector.md)** - **[FAQ](FAQ.md)** \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/toc.md b/product/zh/docs-mogdb/v5.0/toc.md index 612dcc02..6cccc32c 100644 --- a/product/zh/docs-mogdb/v5.0/toc.md +++ b/product/zh/docs-mogdb/v5.0/toc.md @@ -297,6 +297,18 @@ + [导出所有数据库](/administrator-guide/importing-and-exporting-data/exporting-data/3-exporting-all-databases.md) + [无权限角色导出数据](/administrator-guide/importing-and-exporting-data/exporting-data/4-data-export-by-a-user-without-required-permissions.md) + [升级指南](/administrator-guide/upgrade-guide.md) ++ [高可用指南](./high-available-guide/high-available-guide.md) + + [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) + + [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [特性介绍](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl工具介绍](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist工具介绍](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [安装和卸载工具介绍](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [安全设计](./high-available-guide/cluster-management/safety-design.md) + + [CM配置参数介绍](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [CM手动配置VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) + [AI特性指南](/AI-features/ai-feature.md) + [AI4DB:数据库自治运维](/AI-features/ai4db/ai4db-autonomous-database-o&m.md) + [DBMind模式说明](/AI-features/ai4db/dbmind-mode/dbmind-mode.md) @@ -1342,7 +1354,6 @@ + [DML语法一览表](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL语法一览表](/reference-guide/sql-reference/dcl-syntax-overview.md) + [子查询](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [别名](./reference-guide/sql-reference/alias.md) + [锁](./reference-guide/sql-reference/sql-reference-lock.md) @@ -1752,16 +1763,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [集群管理(Cluster Manager)](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [特性介绍](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [安装和卸载工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [安全设计](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM配置参数介绍](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [CM手动配置VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [MogDB可运行脚本功能说明](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [gs_collector工具支持收集的系统表和视图列表](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) diff --git a/product/zh/docs-mogdb/v5.0/toc_datatypes-and-sql.md b/product/zh/docs-mogdb/v5.0/toc_datatypes-and-sql.md index 7eae3eb4..72a2deaf 100644 --- a/product/zh/docs-mogdb/v5.0/toc_datatypes-and-sql.md +++ b/product/zh/docs-mogdb/v5.0/toc_datatypes-and-sql.md @@ -289,7 +289,6 @@ + [DML语法一览表](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL语法一览表](/reference-guide/sql-reference/dcl-syntax-overview.md) + [子查询](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [别名](./reference-guide/sql-reference/alias.md) + [锁](./reference-guide/sql-reference/sql-reference-lock.md) diff --git a/product/zh/docs-mogdb/v5.0/toc_high_available.md b/product/zh/docs-mogdb/v5.0/toc_high_available.md new file mode 100644 index 00000000..35a1c323 --- /dev/null +++ b/product/zh/docs-mogdb/v5.0/toc_high_available.md @@ -0,0 +1,17 @@ + + +# MogDB Documentation 5.0 + +## 高可用指南 + ++ [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) ++ [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [特性介绍](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl工具介绍](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist工具介绍](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [安装和卸载工具介绍](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [安全设计](./high-available-guide/cluster-management/safety-design.md) + + [CM配置参数介绍](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [CM手动配置VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/toc_parameters-and-tools.md b/product/zh/docs-mogdb/v5.0/toc_parameters-and-tools.md index 421346bf..d1b1e29e 100644 --- a/product/zh/docs-mogdb/v5.0/toc_parameters-and-tools.md +++ b/product/zh/docs-mogdb/v5.0/toc_parameters-and-tools.md @@ -391,16 +391,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [集群管理(Cluster Manager)](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [特性介绍](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [安装和卸载工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [安全设计](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM配置参数介绍](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [CM手动配置VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [MogDB可运行脚本功能说明](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [gs_collector工具支持收集的系统表和视图列表](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) \ No newline at end of file -- Gitee From f057f1e0eadbe8c36ceb8a2cf77f176624f67b4e Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Mon, 6 May 2024 15:25:07 +0800 Subject: [PATCH 03/10] =?UTF-8?q?fix(mogdb):5.0=E6=96=B0=E5=A2=9E=E9=AB=98?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=8C=87=E5=8D=97-en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../high-availability/13-dcf.md | 108 ++--- .../high-availability/14-cm.md | 136 +++--- ...omponent-supporting-two-node-deployment.md | 2 +- ...vailability-based-on-the-paxos-protocol.md | 82 ++-- .../maintainability/dcf-module-tracing.md | 2 +- .../cluster-management/cluster-management.md | 0 .../cm-configuration-parameter/cm-cm_agent.md | 0 .../cm-cm_server.md | 0 .../cm-configuration-parameter.md | 0 .../feature-introduction.md | 0 .../introduction-to-cm_ctl-tool.md | 0 .../introduction-to-cm_persist.md | 0 ...to-installation-and-uninstallation-tool.md | 0 .../manual-configuration-of-vip.md | 0 .../cluster-management/safety-design.md | 0 .../high-available-dcf.md} | 420 +++++++++--------- .../high-available-guide.md | 11 + .../sql-reference/sql-reference.md | 69 ++- .../tool-reference/tool-reference.md | 1 - product/en/docs-mogdb/v5.0/toc.md | 23 +- .../docs-mogdb/v5.0/toc_datatypes-and-sql.md | 1 - .../en/docs-mogdb/v5.0/toc_high_available.md | 17 + .../v5.0/toc_parameters-and-tools.md | 10 - 23 files changed, 449 insertions(+), 433 deletions(-) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cluster-management.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_agent.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_server.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/feature-introduction.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_ctl-tool.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_persist.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-installation-and-uninstallation-tool.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/manual-configuration-of-vip.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/tool-reference => high-available-guide}/cluster-management/safety-design.md (100%) rename product/en/docs-mogdb/v5.0/{reference-guide/sql-reference/sql-reference-dcf.md => high-available-guide/high-available-dcf.md} (98%) create mode 100644 product/en/docs-mogdb/v5.0/high-available-guide/high-available-guide.md create mode 100644 product/en/docs-mogdb/v5.0/toc_high_available.md diff --git a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md index c3659977..92205dea 100644 --- a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md +++ b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/13-dcf.md @@ -1,54 +1,54 @@ ---- -title: DCF -summary: DCF -author: Guo Huan -date: 2022-05-10 ---- - -# DCF - -## Availability - -This feature is available since MogDB 2.0.0. - -## Introduction - -Distributed consensus framework (DCF) implements data synchronization based on the Paxos algorithm. After the DCF mode is enabled, DNs support Paxos-based replication and quorum capabilities. - -## Benefits - -Primary DN selection and log replication are performed based on Paxos. Compression and flow control are supported during the replication to prevent high bandwidth usage. DCF provides capabilities such as log replication and cluster HA. DCF supports automatic leader election, forcible minority startup, and dynamic traffic adjustment for log replication. In addition, multiple Paxos-based roles are provided and can be adjusted. You can query the instance status in the current database. - -DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use independent basic library. Other systems can easily interconnect with DCF through interfaces to obtain the strong consistency, high availability, and automatic disaster recovery capabilities provided by the Paxos algorithm. - -## Description - -- During log replication, DCF supports log compression before transmission to reduce network bandwidth usage. -- DCF supports SSL, including TLS 1.2 and TLS 1.3. When SSL is enabled, the DN configures DCF as TLS 1.2 by default. -- DCF supports five TLS 1.3 cipher suites: TLS13-AES-256-GCM-SHA384, TLS13-CHACHA20-POLY1305-SHA256, TLS13-AES-128-GCM-SHA256, TLS13-AES-128-CCM-8-SHA256 and TLS13-AES-128-CCM-SHA256. -- DCF supports passive nodes, which do not participate in leader election and only synchronize and replay logs. When this type of nodes is heavily loaded during log synchronization, flow control is performed. -- DCF supports logger nodes, which participate in leader election and voting. However, the logger nodes only replicate DCF logs. Xlogs are not replicated and redo is not performed. -- DCF supports online switchover between follower and passive nodes. That is, without interrupting services, a node can switch over between the follower and passive roles. -- DCF supports forcible startup of the minority of DNs. In case that the majority of database instances are faulty, a minority of standby DNs are selected and forcibly promoted to primary, and other normal standby DNs replicate logs from the primary DNs. -- DCF supports automatic leader election. When the original primary DN is faulty, a new primary DN is automatically selected from the remaining standby DNs on the premise that data consistency is ensured. -- DCF supports the policy-based majority capability. Based on the configured AZ, DCF ensures that at least one node in the AZ synchronizes replication logs. - -## Enhancements - -None. - -## Constraints - -To use this function, you need to enable DCF during installation and deployment. In DCF mode, the majority election is used. During the installation, if the number of faulty nodes and build nodes reaches the majority, the cluster installation will fail. For example, when one primary node and two standby nodes are installed, one node fails to be installed due to insufficient memory, but the other two nodes can be started normally. A standby node will be built again. In this case, the number of build nodes and faulty nodes is 2, which is the majority, and the cluster installation will fail. During the installation, check whether the memory and disk resources are sufficient. - -If the policy-based majority parameter is configured for an AZ and all nodes in the AZ are faulty, you need to remove the AZ configuration from the policy-based majority configuration when performing build operations on the nodes. - -The manual mode is used to set the cluster-level working mode. In this mode, the logger or passive role is not supported. - -## Dependencies - -None. - -## Related Pages - -[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +--- +title: DCF +summary: DCF +author: Guo Huan +date: 2022-05-10 +--- + +# DCF + +## Availability + +This feature is available since MogDB 2.0.0. + +## Introduction + +Distributed consensus framework (DCF) implements data synchronization based on the Paxos algorithm. After the DCF mode is enabled, DNs support Paxos-based replication and quorum capabilities. + +## Benefits + +Primary DN selection and log replication are performed based on Paxos. Compression and flow control are supported during the replication to prevent high bandwidth usage. DCF provides capabilities such as log replication and cluster HA. DCF supports automatic leader election, forcible minority startup, and dynamic traffic adjustment for log replication. In addition, multiple Paxos-based roles are provided and can be adjusted. You can query the instance status in the current database. + +DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use independent basic library. Other systems can easily interconnect with DCF through interfaces to obtain the strong consistency, high availability, and automatic disaster recovery capabilities provided by the Paxos algorithm. + +## Description + +- During log replication, DCF supports log compression before transmission to reduce network bandwidth usage. +- DCF supports SSL, including TLS 1.2 and TLS 1.3. When SSL is enabled, the DN configures DCF as TLS 1.2 by default. +- DCF supports five TLS 1.3 cipher suites: TLS13-AES-256-GCM-SHA384, TLS13-CHACHA20-POLY1305-SHA256, TLS13-AES-128-GCM-SHA256, TLS13-AES-128-CCM-8-SHA256 and TLS13-AES-128-CCM-SHA256. +- DCF supports passive nodes, which do not participate in leader election and only synchronize and replay logs. When this type of nodes is heavily loaded during log synchronization, flow control is performed. +- DCF supports logger nodes, which participate in leader election and voting. However, the logger nodes only replicate DCF logs. Xlogs are not replicated and redo is not performed. +- DCF supports online switchover between follower and passive nodes. That is, without interrupting services, a node can switch over between the follower and passive roles. +- DCF supports forcible startup of the minority of DNs. In case that the majority of database instances are faulty, a minority of standby DNs are selected and forcibly promoted to primary, and other normal standby DNs replicate logs from the primary DNs. +- DCF supports automatic leader election. When the original primary DN is faulty, a new primary DN is automatically selected from the remaining standby DNs on the premise that data consistency is ensured. +- DCF supports the policy-based majority capability. Based on the configured AZ, DCF ensures that at least one node in the AZ synchronizes replication logs. + +## Enhancements + +None. + +## Constraints + +To use this function, you need to enable DCF during installation and deployment. In DCF mode, the majority election is used. During the installation, if the number of faulty nodes and build nodes reaches the majority, the cluster installation will fail. For example, when one primary node and two standby nodes are installed, one node fails to be installed due to insufficient memory, but the other two nodes can be started normally. A standby node will be built again. In this case, the number of build nodes and faulty nodes is 2, which is the majority, and the cluster installation will fail. During the installation, check whether the memory and disk resources are sufficient. + +If the policy-based majority parameter is configured for an AZ and all nodes in the AZ are faulty, you need to remove the AZ configuration from the policy-based majority configuration when performing build operations on the nodes. + +The manual mode is used to set the cluster-level working mode. In this mode, the logger or passive role is not supported. + +## Dependencies + +None. + +## Related Pages + +[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md index 3aef3458..6c13f3d6 100644 --- a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md +++ b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/14-cm.md @@ -1,68 +1,68 @@ ---- -title: CM -summary: CM -author: Guo Huan -date: 2022-05-10 ---- - -# CM - -## Availability - -This feature is available since MogDB 3.0.0. - -## Introduction - -Cluster manager (CM) is a database management software, which consists of cm_server, cm_agent, om_monitor, cm_ctl. Its core features are as follows. - -- cm_server - - Send commands (such as start, stop, status query, switchover and failover of database instances) to cm_agent on each node and receive responses; - - Receive the database instance status information reported by cm_agent on each node; - - Highly available arbitration of cm_server itself on each node; - - Highly available arbitration of database instances on each node. - -- cm_agent - - Receive and execute commands from cm_server, such as start, stop, status query, switchover and failover of database instances; - - Monitor the status of the database instance running on the current node and report it to cm_server. - -- cm_monitor - - Monitor the cm_agent service running on the current node to ensure its availability. - -- cm_ctl - - Client tool for CM. - -## Benefits - -It manages and monitors the running status of functional units and physical resources in a database system, ensuring stable running of the system. - -## Description - -It supports customized resource monitoring and provides capabilities such as monitoring of the primary/standby database status, network communication faults, file system faults, and automatic primary/standby switchover upon faults. It also provides various database management capabilities, such as starting and stopping nodes and instances, querying database instance status, performing primary/standby switchover, and managing logs. - -## Enhancements - -The CM supports external status query and push. Additionally, CM supports two-node deployment. - -- The HTTP/HTTPS service is used to remotely query the cluster status, helping management personnel and O&M platforms monitor the cluster status. - -- When an primary/standby switchover occurs in the database cluster, the latest primary/standby information of the cluster is pushed to the receiving address registered by the application through the HTTP/HTTPS service in time. In this way, the application can detect the primary/standby change of the cluster in time and quickly connect to the new primary and standby nodes. - -## Constraints - -In scenarios where there are one primary node and one standby node, CM does not support enabling of DCF configuration. - -## Dependencies - -Highly available arbitration relies on DCF, DCC, and CBB components. - -## Related Pages - -[Cluster Management](../../reference-guide/tool-reference/cluster-management/cluster-management.md) \ No newline at end of file +--- +title: CM +summary: CM +author: Guo Huan +date: 2022-05-10 +--- + +# CM + +## Availability + +This feature is available since MogDB 3.0.0. + +## Introduction + +Cluster manager (CM) is a database management software, which consists of cm_server, cm_agent, om_monitor, cm_ctl. Its core features are as follows. + +- cm_server + + Send commands (such as start, stop, status query, switchover and failover of database instances) to cm_agent on each node and receive responses; + + Receive the database instance status information reported by cm_agent on each node; + + Highly available arbitration of cm_server itself on each node; + + Highly available arbitration of database instances on each node. + +- cm_agent + + Receive and execute commands from cm_server, such as start, stop, status query, switchover and failover of database instances; + + Monitor the status of the database instance running on the current node and report it to cm_server. + +- cm_monitor + + Monitor the cm_agent service running on the current node to ensure its availability. + +- cm_ctl + + Client tool for CM. + +## Benefits + +It manages and monitors the running status of functional units and physical resources in a database system, ensuring stable running of the system. + +## Description + +It supports customized resource monitoring and provides capabilities such as monitoring of the primary/standby database status, network communication faults, file system faults, and automatic primary/standby switchover upon faults. It also provides various database management capabilities, such as starting and stopping nodes and instances, querying database instance status, performing primary/standby switchover, and managing logs. + +## Enhancements + +The CM supports external status query and push. Additionally, CM supports two-node deployment. + +- The HTTP/HTTPS service is used to remotely query the cluster status, helping management personnel and O&M platforms monitor the cluster status. + +- When an primary/standby switchover occurs in the database cluster, the latest primary/standby information of the cluster is pushed to the receiving address registered by the application through the HTTP/HTTPS service in time. In this way, the application can detect the primary/standby change of the cluster in time and quickly connect to the new primary and standby nodes. + +## Constraints + +In scenarios where there are one primary node and one standby node, CM does not support enabling of DCF configuration. + +## Dependencies + +Highly available arbitration relies on DCF, DCC, and CBB components. + +## Related Pages + +[Cluster Management](../../high-available-guide/cluster-management/cluster-management.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md index 9205dd5e..40818ed5 100644 --- a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md +++ b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md @@ -31,4 +31,4 @@ This self-arbitration mechanism can effectively cope with the need for failover ## Related Pages -[Cluster Management](../../reference-guide/tool-reference/cluster-management/cluster-management.md), [CM supports two-node deployment](../../reference-guide/tool-reference/cluster-management/feature-introduction.md),[CM Fault](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file +[Cluster Management](../../high-available-guide/cluster-management/cluster-management.md), [CM supports two-node deployment](../../high-available-guide/cluster-management/feature-introduction.md),[CM Fault](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md index 8b471a86..e2f34624 100644 --- a/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md +++ b/product/en/docs-mogdb/v5.0/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md @@ -1,41 +1,41 @@ ---- -title: High Availability Based on the Paxos Protocol -summary: High Availability Based on the Paxos Protocol -author: zhang cuiping -date: 2022-10-24 ---- - -# High Availability Based on the Paxos Protocol - -## Availability - -This feature is available since MogDB 2.1.0. - -## Introduction - -After the DCF mode is enabled, database nodes support Paxos-based replication and quorum capabilities. Primary database node selection and log replication are performed based on Paxos. Compression and flow control are supported during the replication to prevent high bandwidth usage. It supports multiple types of nodes based on the Paxos protocol and the node roles can be adjusted as required. You can query the instance status in the current database. - -## Description - -- During log replication, DCF supports log compression before transmission to reduce network bandwidth usage. -- DCF supports passive nodes, which do not participate in node election and only synchronize and replay logs. When this type of nodes is heavily loaded during log synchronization, flow control is performed. -- DCF supports logger nodes, which participate in node election and voting. However, the logger nodes only replicate DCF logs. Xlogs are not replicated and redo is not performed. -- DCF supports online switchover between follower and passive nodes. That is, without interrupting services, a node can switch over between the follower and passive roles. -- DCF supports forcible startup of the minority of nodes. In case that the majority of database instances are faulty, a minority of standby nodes are selected and forcibly promoted to primary, and other normal standby nodes replicate logs from the primary nodes. -- DCF supports primary node selection. When the original primary node is faulty, a new primary node is automatically selected from the remaining standby nodes on the premise that data consistency is ensured. - -## Enhancements - -None. - -## Constraints - -To use this function, you need to enable DCF during installation and deployment. - -## Dependencies - -None. - -## Related Pages - -[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +--- +title: High Availability Based on the Paxos Protocol +summary: High Availability Based on the Paxos Protocol +author: zhang cuiping +date: 2022-10-24 +--- + +# High Availability Based on the Paxos Protocol + +## Availability + +This feature is available since MogDB 2.1.0. + +## Introduction + +After the DCF mode is enabled, database nodes support Paxos-based replication and quorum capabilities. Primary database node selection and log replication are performed based on Paxos. Compression and flow control are supported during the replication to prevent high bandwidth usage. It supports multiple types of nodes based on the Paxos protocol and the node roles can be adjusted as required. You can query the instance status in the current database. + +## Description + +- During log replication, DCF supports log compression before transmission to reduce network bandwidth usage. +- DCF supports passive nodes, which do not participate in node election and only synchronize and replay logs. When this type of nodes is heavily loaded during log synchronization, flow control is performed. +- DCF supports logger nodes, which participate in node election and voting. However, the logger nodes only replicate DCF logs. Xlogs are not replicated and redo is not performed. +- DCF supports online switchover between follower and passive nodes. That is, without interrupting services, a node can switch over between the follower and passive roles. +- DCF supports forcible startup of the minority of nodes. In case that the majority of database instances are faulty, a minority of standby nodes are selected and forcibly promoted to primary, and other normal standby nodes replicate logs from the primary nodes. +- DCF supports primary node selection. When the original primary node is faulty, a new primary node is automatically selected from the remaining standby nodes on the premise that data consistency is ensured. + +## Enhancements + +None. + +## Constraints + +To use this function, you need to enable DCF during installation and deployment. + +## Dependencies + +None. + +## Related Pages + +[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md b/product/en/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md index 16115bff..9c3d8a37 100644 --- a/product/en/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md +++ b/product/en/docs-mogdb/v5.0/characteristic-description/maintainability/dcf-module-tracing.md @@ -31,4 +31,4 @@ DCF mode needs to be enabled, i.e. set the `enable_dcf` parameter value to on. ## Related Pages -[gstrace](../../reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md), [enable_dcf](../../reference-guide/guc-parameters/DCF-parameters-settings.md#enable_dcf), [DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[gstrace](../../reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md), [enable_dcf](../../reference-guide/guc-parameters/DCF-parameters-settings.md#enable_dcf), [DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cluster-management.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cluster-management.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cluster-management.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cluster-management.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/feature-introduction.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/feature-introduction.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/feature-introduction.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/feature-introduction.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_persist.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-cm_persist.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/manual-configuration-of-vip.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/manual-configuration-of-vip.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/safety-design.md b/product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/safety-design.md similarity index 100% rename from product/en/docs-mogdb/v5.0/reference-guide/tool-reference/cluster-management/safety-design.md rename to product/en/docs-mogdb/v5.0/high-available-guide/cluster-management/safety-design.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference-dcf.md b/product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md similarity index 98% rename from product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference-dcf.md rename to product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md index 55c5059a..38c3f63a 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference-dcf.md +++ b/product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md @@ -1,211 +1,211 @@ ---- -title: DCF -summary: DCF -author: zhang cuiping -date: 2023-04-07 ---- - -# DCF - -Distributed Consensus Framework (DCF) implements typical algorithms such as Paxos and Raft to solve distribution consistency problems. DCF provides capabilities such as log replication, cluster HA, and automatic leader election, and can forcibly start the minority and dynamically adjust traffic for log replication. In addition, multiple Paxos-based roles are provided and can be adjusted. - -DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use independent basic library. Other systems can easily interconnect with DCF through interfaces to obtain the strong consistency, high availability, and automatic disaster recovery capabilities provided by the Paxos algorithm. - -## Architecture - -[Figure 1](#dcf) shows the functional architecture of the DCF, including the algorithm modules, storage module, communication module, and service layer. - -**Figure 1** Functional architecture of the DCF -![DCF功能架构图](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/functional-architecture-of-the-dcf.png) - -- **Algorithm modules:** - - Algorithm modules are implemented based on the Multi-Paxos protocol. Based on the service scenarios, and requirements for high performance and ecosystem, DCF has made many function extensions and performance optimization to enrich the functions compared with the basic Multi-Paxos protocol, and the performance is significantly improved in multiple deployment scenarios. It mainly includes a leader election module, a log replication module, a metadata module, and a cluster management module. - -- **Storage module:** - - For specific service scenarios and ultimate performance, the DCF extracts a set of public interfaces for log storage and implements a default high-performance storage module. For specific scenarios or users who have ultimate performance and cost requirements, you can connect the existing storage system to the log storage interface of DCF to meet specific requirements. This is one of the advantages of DCF as an independent third-party library. - -- **Communication module:** - - The communication module is implemented based on the Message Exchange Component (MEC) and provides the communication capability between DCF instances and the asynchronous event processing framework. The main features are as follows: multiple extensible communication protocols, unicast, broadcast, and loopback sending interfaces, asynchronous message processing framework, multi-channel mechanism, multi-priority queue, compression, and batch sending. - -- **Service layer:** - - The service layer is the basis for running the entire DCF and provides various basic services required for program running. For example, lock, asynchronous task scheduling, thread pool service, and timer. - -## Features - -- **Nodes can be added and deleted online, and the leader role can be handed over online.** - - Based on the standard Multi-Paxos, the DCF supports online node addition and deletion, and leader handover. This is more suitable for building a development ecosystem in a wide range of service scenarios. - -- **Priority-based leader election and policy-based majority are supported.** - - - **Policy-based majority**: In the classic Paxos theory, data can be submitted after the majority reaches a consensus. However, the majority is not specific and it cannot be guaranteed that one or some nodes can obtain complete data. In actual applications, the nodes that are geographically close to each other have strongly consistent data, but the nodes that are geographically far away from each other are always in a non-strongly consistent state. These nodes cannot be activated as the primary node for city-level disaster recovery. The policy-based majority mechanism enables users to dynamically configure one or more nodes to be strongly consistent and can be activated as the primary node immediately for disaster recovery. - - **Priority-based leader election**: You can specify the priority of each node. The DCF elects a leader node strictly according to the specified priority. The node with a lower priority is activated only when all the nodes with a higher priority are unavailable. - -- **Diversified node roles are provided.** - - In addition to typical roles such as Leader, Follower, and Candidate, the DCF also supports customized roles, for example, the Passive role (with logs, with data, without the right to be elected, and not participating in the majority voting) and the Log role (with logs, without data, without the right to be elected, and participating in the mkajority voting). With these node roles, DCF supports synchronous and hybrid (synchronous/asynchronous) multi-cluster deployment. - -- **Batch & Pipeline** - - - **Batch**: The DCF supports multi-level batch operations, including: - - - Combine multiple logs into a single message for sending. - - Combine multiple logs for writing to the disk. - - Combine multiple logs for replication. - - Batch operations can effectively reduce the extra loss due to the message granularity and improve the throughput. - - - **Pipeline**: Before the result of a message is returned, the next message is concurrently sent to the corresponding node. By increasing the number of concurrent messages (pipelines), the latency of each single concurrent request can be effectively reduced and the performance can be improved. DCF uses the asynchronous mode in multiple phases, such as log persistence, network sending, and log replication, to maximize the pipeline performance. - -- **Efficient flow control algorithm** - - Batching and pipelining can improve the throughput and performance of the entire system. However, if the batch size is too large, the latency of a single request is too long. As a result, the number of concurrent requests is too large, affecting the throughput and request latency. Therefore, the DCF designs a set of efficient and adaptive flow control algorithms, automatically detects parameters such as the network bandwidth, network sending latency, and number of concurrent requests, and adjusts batch and pipeline parameters to control service traffic injection. - - [Figure 2](#dcf2) shows the process of the flow control algorithm. - - **Figure 2** Process of the flow control algorithm - ![流控算法流程](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/process-of-the-flow-control-algorithm.jpg) - - The core algorithm process is as follows: - - 1. The primary DCF node periodically samples and calculates consensus information, including the end-to-end consensus latency, end-to-end consensus log bandwidth, and overall log playback bandwidth. - 2. Calculate a new control value: The primary node obtains the performance change trend based on the sampling result and historical results, adjusts the control direction and step based on the historical control value and change trend, and calculates a new control value for better performance. - 3. Update the control value after the control period expires. - 4. Continuously apply the control value to service traffic to control the frequency of service traffic injection. - -## Example - -Assume that there are three nodes in the cluster and their IP addresses are **192.168.0.11**, **192.168.0.12**, and **192.168.0.13**. The node IDs are 1, 2, and 3, and the node roles are Leader, Follower, and Follower. - -To use the DCF component, you need to set **enable_dcf** to **on** (disabled by default) and configure **DCF config** in the configuration file during FusionSphere OpenStack OM installation and deployment. - -Obtain the XML file template from **script/gspylib/etc/conf/centralized/cluster_config_template_HA.xml**. - -Each line of information is commented out. The content in bold is related to the DCF. The following is an example: - -```xml - - - - - - - - - - - - - - - - - - - - - - - - - -... -``` - -1. Cluster status query upon installation completion - - Use gs_ctl to query the cluster status. - - ```perl - # gs_ctl query –D - # gs_ctl query -D /nvme0/gaussdb/cluster/nvme0/dn1 - HA state: - local role : Primary - static connections : 2 - db state : Normal - detail information : Normal - Paxos replication info: - paxos write location : 964/87134528 - paxos commit location : 964/87134528 - local write location : 964/87134528 - local flush location : 964/87134528 - local replay location : 964/87134528 - dcf replication info : {"stream_id":1,"local_node_id":1,"role":"LEADER","term":3,"run_mode":0,"work_mode":0,"hb_interval":1000,"elc_timeout":3000,"applied_index":14300633605."commit_index":14300633605,"first_index":14300625186,"last_index":14300633605,"cluster_min_apply_idx'14300633605,"leader_id":1,"leader_ip":"172.16.137.38","leader_port":17783,"nodes":[{"node_id":1,"id":"172.16.137.38","port":17783,"role":"LEADER","next_index":14300633606,"match_index":14300633605,"apply_index":14300633605},{"node_id":2,"ip":"172.16.137.40","port":17783,"role":"FOLLOWER","next_index":14300633606,"match_index":14300633605,"apply_index":14300633605},{"node_id":3,"ip":"172.16.137.42","port":17783,"role":"FOLLOWER","next_index":14300633606,"match_index":14300633605,"apply_index":14300633605}}} - ``` - - Where: - - - **dcf_replication_info**: DCF information of the current node. - - **role**: role of the current node. The value can be **LEADER**, **FOLLOWER**, **LOGGER**, **PASSIVE**, **PRE_CANDICATE**, **CANDIDATE** or **UNKNOW**. The preceding code shows that the current node is a leader node. - - **term**: election term. - - **run_mode**: DCF running mode. The value **0** indicates the automatic election mode, and the value **2** indicates that automatic election is disabled. - - **work_mode**: DCF working mode. The value **0** indicates the majority mode, and the value **1** indicates the minority mode. - - **hb_interval**: heartbeat interval between DCF nodes, in milliseconds. - - **elc_timeout**: DCF election timeout period, in milliseconds. - - **applied_index**: log location that is applied to the state machine. - - **commit_index**: log location that has been saved by most DCF nodes. Logs before **commit_index** have been made persistent. - - **first_index**: location of the first log saved by DCF nodes. This location is moved backward when the DN invokes **dcf_truncate**. The previous logs will be cleared. - - **last_index**: location of the last log saved by DCF nodes. This location contains the logs that are stored in the memory of the DCF nodes but are not persisted. Therefore, the value of **last_index** is greater than and equal to that of **commit_index**. - - **cluster_min_apply_idx**: location of the log that has been applied and assumes the smallest index. - - **leader_id**: ID of the leader node. - - **leader_ip**: IP address of the leader node. - - **leader_port**: port of the leader node, for DCF internal use. - - **nodes**: information about other nodes in the cluster. - -2. Online cluster scale adjustment - - To add a copy online, run the following command: - - ```xml - # gs_ctl member --operation=add --nodeid= --ip= --port= -D - ``` - - To reduce the number of copies online, run the following command: - - ```xml - # gs_ctl member --operation=remove --nodeid= -D - ``` - - If the cluster is normal, a single copy can be deleted within 5 minutes. - -3. Forcible minority startup - - In case that the majority is faulty, no consensus can be reached based on the Paxos protocol. As a result, the system cannot continue to provide services. In order to provide emergency service capabilities, the minority needs to be started to continue to provide services. - - Run the following command to start up the minority: - - ```xml - # cm_ctl setrunmode -n -D --xmode=minority --votenum= - ``` - - In the three-copy cluster scenario, if two copies are faulty, data can be submitted as long as one copy is consistent. - - Run the following command to resume the majority. - - ```xml - # cm_ctl setrunmode -n -D --xmode=normal --votenum= - ``` - -4. Switchover - - Primary/standby switchover is supported when one primary and multiple standby database nodes are deployed to implement switchover between AZs. Switchover is performed for maintenance. Before a switchover, ensure that the database instances are running properly, and no catchup between the primary and standby nodes is ongoing after services are stopped. - - To promote a standby node to primary, run the following command: - - ```xml - # cm_ctl switchover –n -D - ``` - -5. Standby node rebuilding - - Full build is supported in primary/standby deployment. After receiving a full build request, the primary DN blocks recycling DCF logs and the standby DN replicates Xlogs and data files from the primary DN. After the standby DN is started, a time point is set for the DCF function to replicate logs. - - To start full build, run the following command: - - ```css - gs_ctl build -b full -D +--- +title: DCF +summary: DCF +author: zhang cuiping +date: 2023-04-07 +--- + +# DCF + +Distributed Consensus Framework (DCF) implements typical algorithms such as Paxos and Raft to solve distribution consistency problems. DCF provides capabilities such as log replication, cluster HA, and automatic leader election, and can forcibly start the minority and dynamically adjust traffic for log replication. In addition, multiple Paxos-based roles are provided and can be adjusted. + +DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use independent basic library. Other systems can easily interconnect with DCF through interfaces to obtain the strong consistency, high availability, and automatic disaster recovery capabilities provided by the Paxos algorithm. + +## Architecture + +[Figure 1](#dcf) shows the functional architecture of the DCF, including the algorithm modules, storage module, communication module, and service layer. + +**Figure 1** Functional architecture of the DCF +![DCF功能架构图](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/functional-architecture-of-the-dcf.png) + +- **Algorithm modules:** + + Algorithm modules are implemented based on the Multi-Paxos protocol. Based on the service scenarios, and requirements for high performance and ecosystem, DCF has made many function extensions and performance optimization to enrich the functions compared with the basic Multi-Paxos protocol, and the performance is significantly improved in multiple deployment scenarios. It mainly includes a leader election module, a log replication module, a metadata module, and a cluster management module. + +- **Storage module:** + + For specific service scenarios and ultimate performance, the DCF extracts a set of public interfaces for log storage and implements a default high-performance storage module. For specific scenarios or users who have ultimate performance and cost requirements, you can connect the existing storage system to the log storage interface of DCF to meet specific requirements. This is one of the advantages of DCF as an independent third-party library. + +- **Communication module:** + + The communication module is implemented based on the Message Exchange Component (MEC) and provides the communication capability between DCF instances and the asynchronous event processing framework. The main features are as follows: multiple extensible communication protocols, unicast, broadcast, and loopback sending interfaces, asynchronous message processing framework, multi-channel mechanism, multi-priority queue, compression, and batch sending. + +- **Service layer:** + + The service layer is the basis for running the entire DCF and provides various basic services required for program running. For example, lock, asynchronous task scheduling, thread pool service, and timer. + +## Features + +- **Nodes can be added and deleted online, and the leader role can be handed over online.** + + Based on the standard Multi-Paxos, the DCF supports online node addition and deletion, and leader handover. This is more suitable for building a development ecosystem in a wide range of service scenarios. + +- **Priority-based leader election and policy-based majority are supported.** + + - **Policy-based majority**: In the classic Paxos theory, data can be submitted after the majority reaches a consensus. However, the majority is not specific and it cannot be guaranteed that one or some nodes can obtain complete data. In actual applications, the nodes that are geographically close to each other have strongly consistent data, but the nodes that are geographically far away from each other are always in a non-strongly consistent state. These nodes cannot be activated as the primary node for city-level disaster recovery. The policy-based majority mechanism enables users to dynamically configure one or more nodes to be strongly consistent and can be activated as the primary node immediately for disaster recovery. + - **Priority-based leader election**: You can specify the priority of each node. The DCF elects a leader node strictly according to the specified priority. The node with a lower priority is activated only when all the nodes with a higher priority are unavailable. + +- **Diversified node roles are provided.** + + In addition to typical roles such as Leader, Follower, and Candidate, the DCF also supports customized roles, for example, the Passive role (with logs, with data, without the right to be elected, and not participating in the majority voting) and the Log role (with logs, without data, without the right to be elected, and participating in the mkajority voting). With these node roles, DCF supports synchronous and hybrid (synchronous/asynchronous) multi-cluster deployment. + +- **Batch & Pipeline** + + - **Batch**: The DCF supports multi-level batch operations, including: + + - Combine multiple logs into a single message for sending. + - Combine multiple logs for writing to the disk. + - Combine multiple logs for replication. + + Batch operations can effectively reduce the extra loss due to the message granularity and improve the throughput. + + - **Pipeline**: Before the result of a message is returned, the next message is concurrently sent to the corresponding node. By increasing the number of concurrent messages (pipelines), the latency of each single concurrent request can be effectively reduced and the performance can be improved. DCF uses the asynchronous mode in multiple phases, such as log persistence, network sending, and log replication, to maximize the pipeline performance. + +- **Efficient flow control algorithm** + + Batching and pipelining can improve the throughput and performance of the entire system. However, if the batch size is too large, the latency of a single request is too long. As a result, the number of concurrent requests is too large, affecting the throughput and request latency. Therefore, the DCF designs a set of efficient and adaptive flow control algorithms, automatically detects parameters such as the network bandwidth, network sending latency, and number of concurrent requests, and adjusts batch and pipeline parameters to control service traffic injection. + + [Figure 2](#dcf2) shows the process of the flow control algorithm. + + **Figure 2** Process of the flow control algorithm + ![流控算法流程](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/process-of-the-flow-control-algorithm.jpg) + + The core algorithm process is as follows: + + 1. The primary DCF node periodically samples and calculates consensus information, including the end-to-end consensus latency, end-to-end consensus log bandwidth, and overall log playback bandwidth. + 2. Calculate a new control value: The primary node obtains the performance change trend based on the sampling result and historical results, adjusts the control direction and step based on the historical control value and change trend, and calculates a new control value for better performance. + 3. Update the control value after the control period expires. + 4. Continuously apply the control value to service traffic to control the frequency of service traffic injection. + +## Example + +Assume that there are three nodes in the cluster and their IP addresses are **192.168.0.11**, **192.168.0.12**, and **192.168.0.13**. The node IDs are 1, 2, and 3, and the node roles are Leader, Follower, and Follower. + +To use the DCF component, you need to set **enable_dcf** to **on** (disabled by default) and configure **DCF config** in the configuration file during FusionSphere OpenStack OM installation and deployment. + +Obtain the XML file template from **script/gspylib/etc/conf/centralized/cluster_config_template_HA.xml**. + +Each line of information is commented out. The content in bold is related to the DCF. The following is an example: + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + +... +``` + +1. Cluster status query upon installation completion + + Use gs_ctl to query the cluster status. + + ```perl + # gs_ctl query –D + # gs_ctl query -D /nvme0/gaussdb/cluster/nvme0/dn1 + HA state: + local role : Primary + static connections : 2 + db state : Normal + detail information : Normal + Paxos replication info: + paxos write location : 964/87134528 + paxos commit location : 964/87134528 + local write location : 964/87134528 + local flush location : 964/87134528 + local replay location : 964/87134528 + dcf replication info : {"stream_id":1,"local_node_id":1,"role":"LEADER","term":3,"run_mode":0,"work_mode":0,"hb_interval":1000,"elc_timeout":3000,"applied_index":14300633605."commit_index":14300633605,"first_index":14300625186,"last_index":14300633605,"cluster_min_apply_idx'14300633605,"leader_id":1,"leader_ip":"172.16.137.38","leader_port":17783,"nodes":[{"node_id":1,"id":"172.16.137.38","port":17783,"role":"LEADER","next_index":14300633606,"match_index":14300633605,"apply_index":14300633605},{"node_id":2,"ip":"172.16.137.40","port":17783,"role":"FOLLOWER","next_index":14300633606,"match_index":14300633605,"apply_index":14300633605},{"node_id":3,"ip":"172.16.137.42","port":17783,"role":"FOLLOWER","next_index":14300633606,"match_index":14300633605,"apply_index":14300633605}}} + ``` + + Where: + + - **dcf_replication_info**: DCF information of the current node. + - **role**: role of the current node. The value can be **LEADER**, **FOLLOWER**, **LOGGER**, **PASSIVE**, **PRE_CANDICATE**, **CANDIDATE** or **UNKNOW**. The preceding code shows that the current node is a leader node. + - **term**: election term. + - **run_mode**: DCF running mode. The value **0** indicates the automatic election mode, and the value **2** indicates that automatic election is disabled. + - **work_mode**: DCF working mode. The value **0** indicates the majority mode, and the value **1** indicates the minority mode. + - **hb_interval**: heartbeat interval between DCF nodes, in milliseconds. + - **elc_timeout**: DCF election timeout period, in milliseconds. + - **applied_index**: log location that is applied to the state machine. + - **commit_index**: log location that has been saved by most DCF nodes. Logs before **commit_index** have been made persistent. + - **first_index**: location of the first log saved by DCF nodes. This location is moved backward when the DN invokes **dcf_truncate**. The previous logs will be cleared. + - **last_index**: location of the last log saved by DCF nodes. This location contains the logs that are stored in the memory of the DCF nodes but are not persisted. Therefore, the value of **last_index** is greater than and equal to that of **commit_index**. + - **cluster_min_apply_idx**: location of the log that has been applied and assumes the smallest index. + - **leader_id**: ID of the leader node. + - **leader_ip**: IP address of the leader node. + - **leader_port**: port of the leader node, for DCF internal use. + - **nodes**: information about other nodes in the cluster. + +2. Online cluster scale adjustment + + To add a copy online, run the following command: + + ```xml + # gs_ctl member --operation=add --nodeid= --ip= --port= -D + ``` + + To reduce the number of copies online, run the following command: + + ```xml + # gs_ctl member --operation=remove --nodeid= -D + ``` + + If the cluster is normal, a single copy can be deleted within 5 minutes. + +3. Forcible minority startup + + In case that the majority is faulty, no consensus can be reached based on the Paxos protocol. As a result, the system cannot continue to provide services. In order to provide emergency service capabilities, the minority needs to be started to continue to provide services. + + Run the following command to start up the minority: + + ```xml + # cm_ctl setrunmode -n -D --xmode=minority --votenum= + ``` + + In the three-copy cluster scenario, if two copies are faulty, data can be submitted as long as one copy is consistent. + + Run the following command to resume the majority. + + ```xml + # cm_ctl setrunmode -n -D --xmode=normal --votenum= + ``` + +4. Switchover + + Primary/standby switchover is supported when one primary and multiple standby database nodes are deployed to implement switchover between AZs. Switchover is performed for maintenance. Before a switchover, ensure that the database instances are running properly, and no catchup between the primary and standby nodes is ongoing after services are stopped. + + To promote a standby node to primary, run the following command: + + ```xml + # cm_ctl switchover –n -D + ``` + +5. Standby node rebuilding + + Full build is supported in primary/standby deployment. After receiving a full build request, the primary DN blocks recycling DCF logs and the standby DN replicates Xlogs and data files from the primary DN. After the standby DN is started, a time point is set for the DCF function to replicate logs. + + To start full build, run the following command: + + ```css + gs_ctl build -b full -D ``` \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/high-available-guide/high-available-guide.md b/product/en/docs-mogdb/v5.0/high-available-guide/high-available-guide.md new file mode 100644 index 00000000..24a63176 --- /dev/null +++ b/product/en/docs-mogdb/v5.0/high-available-guide/high-available-guide.md @@ -0,0 +1,11 @@ +--- +title: High Available Guide +summary: High Available Guide +author: Guo Huan +date: 2024-04-30 +--- + +# High Available Guide + +- **[DCF(Distributed Consensus Framework)](./high-available-dcf.md)** +- **[CM(Cluster Manager)](./cluster-management/cluster-management.md)** \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md b/product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md index 7562124d..bd93fc70 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/sql-reference/sql-reference.md @@ -1,36 +1,35 @@ ---- -title: SQL Reference -summary: SQL Reference -author: zhang cuiping -date: 2023-04-07 ---- - -# SQL Reference - -- **[MogDB SQL](mogdb-sql.md)** -- **[SQL Syntax Formats](sql-syntax-format.md)** -- **[Keywords](./keywords/keywords.md)** -- **[Constant and Macro](constant-and-macro.md)** -- **[Expressions](./expressions/expressions.md)** -- **[Type Conversion](./type-conversion/type-conversion.md)** -- **[Full Text Search](./full-text-search/full-text-search.md)** -- **[System Operation](system-operation.md)** -- **[Controlling Transactions](controlling-transactions.md)** -- **[DDL Syntax Overview](ddl-syntax-overview.md)** -- **[DML Syntax Overview](dml-syntax-overview.md)** -- **[DCL Syntax Overview](dcl-syntax-overview.md)** -- **[Subqueries](sub-query.md)** -- **[DCF](sql-reference-dcf.md)** -- **[LLVM](sql-reference-llvm.md)** -- **[Aliases](alias.md)** -- **[Locks](sql-reference-lock.md)** -- **[Transactions](transaction/sql-reference-transaction.md)** -- **[Ordinary Table](ordinary-table.md)** -- **[Partitioned Table](partition-table.md)** -- **[Indexes](sql-reference-index.md)** -- **[Constraints](sql-reference-contraints.md)** -- **[Cursors](sql-reference-cursor.md)** -- **[Anonymous Blocks](sql-reference-anonymous-block.md)** -- **[Triggers](sql-reference-trigger.md)** -- **[INSERT_RIGHT_REF_DEFAULT_VALUE](type-base-value.md)** +--- +title: SQL Reference +summary: SQL Reference +author: zhang cuiping +date: 2023-04-07 +--- + +# SQL Reference + +- **[MogDB SQL](mogdb-sql.md)** +- **[SQL Syntax Formats](sql-syntax-format.md)** +- **[Keywords](./keywords/keywords.md)** +- **[Constant and Macro](constant-and-macro.md)** +- **[Expressions](./expressions/expressions.md)** +- **[Type Conversion](./type-conversion/type-conversion.md)** +- **[Full Text Search](./full-text-search/full-text-search.md)** +- **[System Operation](system-operation.md)** +- **[Controlling Transactions](controlling-transactions.md)** +- **[DDL Syntax Overview](ddl-syntax-overview.md)** +- **[DML Syntax Overview](dml-syntax-overview.md)** +- **[DCL Syntax Overview](dcl-syntax-overview.md)** +- **[Subqueries](sub-query.md)** +- **[LLVM](sql-reference-llvm.md)** +- **[Aliases](alias.md)** +- **[Locks](sql-reference-lock.md)** +- **[Transactions](transaction/sql-reference-transaction.md)** +- **[Ordinary Table](ordinary-table.md)** +- **[Partitioned Table](partition-table.md)** +- **[Indexes](sql-reference-index.md)** +- **[Constraints](sql-reference-contraints.md)** +- **[Cursors](sql-reference-cursor.md)** +- **[Anonymous Blocks](sql-reference-anonymous-block.md)** +- **[Triggers](sql-reference-trigger.md)** +- **[INSERT_RIGHT_REF_DEFAULT_VALUE](type-base-value.md)** - **[Appendix](appendix/appendix.md)** \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md b/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md index 6346a2e6..1f13c00e 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/tool-reference/tool-reference.md @@ -13,7 +13,6 @@ This section introduces the client tool for connecting a database and command li - **[Client Tool](./client-tool/client-tool.md)** - **[Server Tools](./server-tools/server-tools.md)** - **[Tools Used in the Internal System](./tools-used-in-the-internal-system/tools-used-in-the-internal-system.md)** -- **[Cluster Management](./cluster-management/cluster-management.md)** - **[Functions of MogDB Executable Scripts](functions-of-mogdb-executable-scripts.md)** - **[System Catalogs and Views Supported by gs_collector](system-catalogs-and-views-supported-by-gs_collector.md)** - **[FAQ](FAQ.md)** \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/toc.md b/product/en/docs-mogdb/v5.0/toc.md index 0ee93127..1c68487b 100644 --- a/product/en/docs-mogdb/v5.0/toc.md +++ b/product/en/docs-mogdb/v5.0/toc.md @@ -282,6 +282,18 @@ + [Exporting All Databases](/administrator-guide/importing-and-exporting-data/exporting-data/3-exporting-all-databases.md) + [Data Export By a User Without Required Permissions](/administrator-guide/importing-and-exporting-data/exporting-data/4-data-export-by-a-user-without-required-permissions.md) + [Upgrade Guide](/administrator-guide/upgrade-guide.md) ++ [High Available Guide](./high-available-guide/high-available-guide.md) + + [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) + + [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [Features](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [cm_install and cm_uninstall Tools](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [Security Design](./high-available-guide/cluster-management/safety-design.md) + + [CM Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [Manual Configuration of VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) + [AI Features Guide](/AI-features/ai-feature.md) + [AI4DB: Autonomous Database O&M](/AI-features/ai4db/ai4db-autonomous-database-o&m.md) + [DBMind Mode](/AI-features/ai4db/dbmind-mode/dbmind-mode.md) @@ -1324,7 +1336,6 @@ + [DML Syntax Overview](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL Syntax Overview](/reference-guide/sql-reference/dcl-syntax-overview.md) + [Subquery](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [Alias](./reference-guide/sql-reference/alias.md) + [Lock](./reference-guide/sql-reference/sql-reference-lock.md) @@ -1730,16 +1741,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [Cluster Management](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [Features](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [cm_install and cm_uninstall Tools](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [Security Design](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [Manual Configuration of VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [Functions of MogDB Executable Scripts](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [System Catalogs and Views Supported by gs_collector](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) diff --git a/product/en/docs-mogdb/v5.0/toc_datatypes-and-sql.md b/product/en/docs-mogdb/v5.0/toc_datatypes-and-sql.md index 1b629e63..5a44d186 100644 --- a/product/en/docs-mogdb/v5.0/toc_datatypes-and-sql.md +++ b/product/en/docs-mogdb/v5.0/toc_datatypes-and-sql.md @@ -290,7 +290,6 @@ + [DML Syntax Overview](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL Syntax Overview](/reference-guide/sql-reference/dcl-syntax-overview.md) + [Sub-query](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [Alias](./reference-guide/sql-reference/alias.md) + [Lock](./reference-guide/sql-reference/sql-reference-lock.md) diff --git a/product/en/docs-mogdb/v5.0/toc_high_available.md b/product/en/docs-mogdb/v5.0/toc_high_available.md new file mode 100644 index 00000000..4b22e1e7 --- /dev/null +++ b/product/en/docs-mogdb/v5.0/toc_high_available.md @@ -0,0 +1,17 @@ + + +# MogDB Documentation 5.0 + +## High Available Guide + ++ [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) ++ [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [Features](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [cm_install and cm_uninstall Tools](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [Security Design](./high-available-guide/cluster-management/safety-design.md) + + [CM Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [Manual Configuration of VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.0/toc_parameters-and-tools.md b/product/en/docs-mogdb/v5.0/toc_parameters-and-tools.md index f1f4bf3f..4506d9c4 100644 --- a/product/en/docs-mogdb/v5.0/toc_parameters-and-tools.md +++ b/product/en/docs-mogdb/v5.0/toc_parameters-and-tools.md @@ -388,16 +388,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [Cluster Management](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [Features](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [cm_install and cm_uninstall Tools](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [Security Design](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [Manual Configuration of VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [Functions of MogDB Executable Scripts](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [System Catalogs and Views Supported by gs_collector](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) -- Gitee From dc7c447af717eba4673dd4fc8fac41f63160aad6 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Mon, 6 May 2024 16:00:54 +0800 Subject: [PATCH 04/10] =?UTF-8?q?fix(mogdb):5.1=E6=96=B0=E5=A2=9E=E9=AB=98?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=8C=87=E5=8D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../high-availability/13-dcf.md | 2 +- .../high-availability/14-cm.md | 2 +- ...omponent-supporting-two-node-deployment.md | 2 +- ...vailability-based-on-the-paxos-protocol.md | 2 +- .../maintainability/dcf-module-tracing.md | 2 +- .../cluster-management/cluster-management.md | 0 .../cm-configuration-parameter/cm-cm_agent.md | 0 .../cm-cm_server.md | 0 .../cm-configuration-parameter.md | 0 .../feature-introduction.md | 0 .../introduction-to-cm_ctl-tool.md | 0 .../introduction-to-cm_persist.md | 2 +- ...to-installation-and-uninstallation-tool.md | 2 +- .../manual-configuration-of-vip.md | 0 .../cluster-management/safety-design.md | 0 .../high-available-dcf.md} | 0 .../high-available-guide.md | 11 +++++++++ .../sql-reference/sql-reference.md | 1 - .../tool-reference/tool-reference.md | 1 - product/zh/docs-mogdb/v5.1/toc.md | 23 ++++++++++--------- .../docs-mogdb/v5.1/toc_datatypes-and-sql.md | 1 - .../zh/docs-mogdb/v5.1/toc_high_available.md | 18 +++++++++++++++ .../v5.1/toc_parameters-and-tools.md | 10 -------- 23 files changed, 48 insertions(+), 31 deletions(-) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cluster-management.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_agent.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_server.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/feature-introduction.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_ctl-tool.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_persist.md (98%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-installation-and-uninstallation-tool.md (99%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/manual-configuration-of-vip.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/safety-design.md (100%) rename product/zh/docs-mogdb/v5.1/{reference-guide/sql-reference/sql-reference-dcf.md => high-available-guide/high-available-dcf.md} (100%) create mode 100644 product/zh/docs-mogdb/v5.1/high-available-guide/high-available-guide.md create mode 100644 product/zh/docs-mogdb/v5.1/toc_high_available.md diff --git a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/13-dcf.md b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/13-dcf.md index 7970535d..daca3126 100644 --- a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/13-dcf.md +++ b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/13-dcf.md @@ -51,4 +51,4 @@ DCF支持手动模式是针对集群级的工作模式的设置,在此工作 ## 相关页面 -[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md index 4c3b3a88..e992bbc1 100644 --- a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md +++ b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md @@ -64,4 +64,4 @@ CM支持对外状态查询和推送能力。同时,支持两节点部署模式 ## 相关页面 -[集群管理](../../reference-guide/tool-reference/cluster-management/cluster-management.md) \ No newline at end of file +[集群管理](../../high-available-guide/cluster-management/cluster-management.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md index 4023fb31..0f99ef75 100644 --- a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md +++ b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md @@ -31,4 +31,4 @@ CM集群是一个具备高可用性的数据库集群解决方案。通过支持 ## 相关页面 -[集群管理](../../reference-guide/tool-reference/cluster-management/cluster-management.md),[CM支持两节点部署](../../reference-guide/tool-reference/cluster-management/feature-introduction.md#cm支持两节点部署),[CM两节点故障问题定位](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file +[集群管理](../../high-available-guide/cluster-management/cluster-management.md),[CM支持两节点部署](../../high-available-guide/cluster-management/feature-introduction.md#cm支持两节点部署),[CM两节点故障问题定位](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md index 9fa9a505..240efc97 100644 --- a/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md +++ b/product/zh/docs-mogdb/v5.1/characteristic-description/high-availability/high-availability-based-on-the-paxos-protocol.md @@ -38,4 +38,4 @@ DCF模式开关开启后,数据库节点可以支持基于Paxos协议的复制 ## 相关页面 -[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/characteristic-description/maintainability/dcf-module-tracing.md b/product/zh/docs-mogdb/v5.1/characteristic-description/maintainability/dcf-module-tracing.md index 402a43ac..c8c28477 100644 --- a/product/zh/docs-mogdb/v5.1/characteristic-description/maintainability/dcf-module-tracing.md +++ b/product/zh/docs-mogdb/v5.1/characteristic-description/maintainability/dcf-module-tracing.md @@ -31,4 +31,4 @@ DCF是MogDB内部的一个关键模块,负责处理分布式环境下的数据 ## 相关页面 -[gstrace](../../reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md),[enable_dcf](../../reference-guide/guc-parameters/DCF-parameters-settings.md#enable_dcf),[DCF](../../reference-guide/sql-reference/sql-reference-dcf.md) \ No newline at end of file +[gstrace](../../reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md),[enable_dcf](../../reference-guide/guc-parameters/DCF-parameters-settings.md#enable_dcf),[DCF](../../high-available-guide/high-available-dcf.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cluster-management.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cluster-management.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cluster-management.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cluster-management.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/feature-introduction.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/feature-introduction.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/feature-introduction.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/feature-introduction.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_persist.md similarity index 98% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_persist.md index 527ccd5c..09f6dbac 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md +++ b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_persist.md @@ -44,6 +44,6 @@ cm_persist工具用来在资源池化设备上实现抢占磁盘锁功能。该 在指定的磁盘偏移地址上抢占磁盘锁。 -- -?,–help +- -?,--help 打印帮助信息。 diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md similarity index 99% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md index 8ef0e435..ec539f6a 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md +++ b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md @@ -62,6 +62,6 @@ cm_uninstall -X XMLFILE [-e envFile] [--deleteData] [--deleteBinary] 删除CM相关二进制,包括om_monitor、cm_agent、cm_server、cm_ctl,默认不删除。 -- -?, –help +- -?, --help 显示帮助信息。 \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/manual-configuration-of-vip.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/manual-configuration-of-vip.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/safety-design.md b/product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/safety-design.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/safety-design.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/cluster-management/safety-design.md diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference-dcf.md b/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md similarity index 100% rename from product/zh/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference-dcf.md rename to product/zh/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md diff --git a/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-guide.md b/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-guide.md new file mode 100644 index 00000000..367df89d --- /dev/null +++ b/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-guide.md @@ -0,0 +1,11 @@ +--- +title: 高可用指南 +summary: 高可用指南 +author: Guo Huan +date: 2024-04-30 +--- + +# 高可用指南 + +- **[DCF(Distributed Consensus Framework)](./high-available-dcf.md)** +- **[CM(Cluster Manager)](./cluster-management/cluster-management.md)** \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md b/product/zh/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md index 84e24b27..c575bb54 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md @@ -20,7 +20,6 @@ date: 2023-04-07 - **[DML语法一览表](dml-syntax-overview.md)** - **[DCL语法一览表](dcl-syntax-overview.md)** - **[子查询](sub-query.md)** -- **[DCF](sql-reference-dcf.md)** - **[LLVM](sql-reference-llvm.md)** - **[别名](alias.md)** - **[锁](sql-reference-lock.md)** diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md b/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md index 128598c4..b8c6fa8a 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md @@ -13,7 +13,6 @@ date: 2023-04-07 - **[客户端工具](./client-tool/client-tool.md)** - **[服务端工具](./server-tools/server-tools.md)** - **[系统内部使用的工具](./tools-used-in-the-internal-system/tools-used-in-the-internal-system.md)** -- **[集群管理(Cluster Manager)](./cluster-management/cluster-management.md)** - **[MogDB可运行脚本功能说明](functions-of-mogdb-executable-scripts.md)** - **[gs_collector工具支持收集的系统表和视图列表](system-catalogs-and-views-supported-by-gs_collector.md)** - **[FAQ](FAQ.md)** \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/toc.md b/product/zh/docs-mogdb/v5.1/toc.md index 53d320a0..06dea2d1 100644 --- a/product/zh/docs-mogdb/v5.1/toc.md +++ b/product/zh/docs-mogdb/v5.1/toc.md @@ -317,6 +317,18 @@ + [导出所有数据库](/administrator-guide/importing-and-exporting-data/exporting-data/3-exporting-all-databases.md) + [无权限角色导出数据](/administrator-guide/importing-and-exporting-data/exporting-data/4-data-export-by-a-user-without-required-permissions.md) + [升级指南](/administrator-guide/upgrade-guide.md) ++ [高可用指南](./high-available-guide/high-available-guide.md) + + [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) + + [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [特性介绍](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl工具介绍](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist工具介绍](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [安装和卸载工具介绍](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [安全设计](./high-available-guide/cluster-management/safety-design.md) + + [CM配置参数介绍](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [CM手动配置VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) + [AI特性指南](/AI-features/ai-feature.md) + [AI4DB:数据库自治运维](/AI-features/ai4db/ai4db-autonomous-database-o&m.md) + [DBMind模式说明](/AI-features/ai4db/dbmind-mode/dbmind-mode.md) @@ -1400,7 +1412,6 @@ + [DML语法一览表](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL语法一览表](/reference-guide/sql-reference/dcl-syntax-overview.md) + [子查询](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [别名](./reference-guide/sql-reference/alias.md) + [锁](./reference-guide/sql-reference/sql-reference-lock.md) @@ -1809,16 +1820,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [集群管理(Cluster Manager)](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [特性介绍](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [安装和卸载工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [安全设计](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM配置参数介绍](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [CM手动配置VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [MogDB可运行脚本功能说明](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [gs_collector工具支持收集的系统表和视图列表](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) diff --git a/product/zh/docs-mogdb/v5.1/toc_datatypes-and-sql.md b/product/zh/docs-mogdb/v5.1/toc_datatypes-and-sql.md index 576ceb17..f501f195 100644 --- a/product/zh/docs-mogdb/v5.1/toc_datatypes-and-sql.md +++ b/product/zh/docs-mogdb/v5.1/toc_datatypes-and-sql.md @@ -298,7 +298,6 @@ + [DML语法一览表](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL语法一览表](/reference-guide/sql-reference/dcl-syntax-overview.md) + [子查询](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [别名](./reference-guide/sql-reference/alias.md) + [锁](./reference-guide/sql-reference/sql-reference-lock.md) diff --git a/product/zh/docs-mogdb/v5.1/toc_high_available.md b/product/zh/docs-mogdb/v5.1/toc_high_available.md new file mode 100644 index 00000000..c54104e5 --- /dev/null +++ b/product/zh/docs-mogdb/v5.1/toc_high_available.md @@ -0,0 +1,18 @@ + + + +# MogDB Documentation 5.1 + +## 高可用指南 + ++ [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) ++ [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [特性介绍](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl工具介绍](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist工具介绍](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [安装和卸载工具介绍](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [安全设计](./high-available-guide/cluster-management/safety-design.md) + + [CM配置参数介绍](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server参数](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [CM手动配置VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/toc_parameters-and-tools.md b/product/zh/docs-mogdb/v5.1/toc_parameters-and-tools.md index b6379a26..c1f7a6b0 100644 --- a/product/zh/docs-mogdb/v5.1/toc_parameters-and-tools.md +++ b/product/zh/docs-mogdb/v5.1/toc_parameters-and-tools.md @@ -391,16 +391,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [集群管理(Cluster Manager)](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [特性介绍](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [安装和卸载工具介绍](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [安全设计](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM配置参数介绍](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server参数](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [CM手动配置VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [MogDB可运行脚本功能说明](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [gs_collector工具支持收集的系统表和视图列表](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) \ No newline at end of file -- Gitee From 7fc0f5060c263ac90379b9cc746f20d50799fd45 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Mon, 6 May 2024 16:14:19 +0800 Subject: [PATCH 05/10] =?UTF-8?q?fix(mogdb):5.1=E6=96=B0=E5=A2=9E=E9=AB=98?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=8C=87=E5=8D=97-en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../guc-parameters/cm-parameters.md | 2 +- .../high-availability/14-cm.md | 2 +- ...omponent-supporting-two-node-deployment.md | 2 +- .../cluster-management/cluster-management.md | 0 .../cm-configuration-parameter/cm-cm_agent.md | 0 .../cm-cm_server.md | 0 .../cm-configuration-parameter.md | 0 .../feature-introduction.md | 0 .../introduction-to-cm_ctl-tool.md | 0 .../introduction-to-cm_persist.md | 0 ...to-installation-and-uninstallation-tool.md | 0 .../manual-configuration-of-vip.md | 0 .../cluster-management/safety-design.md | 0 .../high-available-dcf.md} | 0 .../high-available-guide.md | 11 +++++++++ .../guc-parameters/cm-parameters.md | 2 +- .../sql-reference/sql-reference.md | 1 - .../tool-reference/tool-reference.md | 1 - product/en/docs-mogdb/v5.1/toc.md | 23 ++++++++++--------- .../docs-mogdb/v5.1/toc_datatypes-and-sql.md | 1 - .../en/docs-mogdb/v5.1/toc_high_available.md | 18 +++++++++++++++ .../v5.1/toc_parameters-and-tools.md | 10 -------- .../guc-parameters/cm-parameters.md | 2 +- 23 files changed, 46 insertions(+), 29 deletions(-) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cluster-management.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_agent.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-cm_server.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/feature-introduction.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_ctl-tool.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-cm_persist.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/introduction-to-installation-and-uninstallation-tool.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/manual-configuration-of-vip.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/tool-reference => high-available-guide}/cluster-management/safety-design.md (100%) rename product/en/docs-mogdb/v5.1/{reference-guide/sql-reference/sql-reference-dcf.md => high-available-guide/high-available-dcf.md} (100%) create mode 100644 product/en/docs-mogdb/v5.1/high-available-guide/high-available-guide.md create mode 100644 product/en/docs-mogdb/v5.1/toc_high_available.md diff --git a/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md b/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md index 8078d70c..5f4877ae 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/cm-parameters.md @@ -7,4 +7,4 @@ date: 2023-04-07 # CM Parameters -Modifying CM parameters affects the running mechanism of MogDB. You are advised to ask MogDB engineers to do it for you. For details about how to modify the CM parameters, see [CM Configuration Parameters](../tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md). +Modifying CM parameters affects the running mechanism of MogDB. You are advised to ask MogDB engineers to do it for you. For details about how to modify the CM parameters, see [CM Configuration Parameters](../../high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md). diff --git a/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md b/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md index 3650303b..6c13f3d6 100644 --- a/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md +++ b/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/14-cm.md @@ -65,4 +65,4 @@ Highly available arbitration relies on DCF, DCC, and CBB components. ## Related Pages -[Cluster Management](../../reference-guide/tool-reference/cluster-management/cluster-management.md) \ No newline at end of file +[Cluster Management](../../high-available-guide/cluster-management/cluster-management.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md b/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md index 9205dd5e..40818ed5 100644 --- a/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md +++ b/product/en/docs-mogdb/v5.1/characteristic-description/high-availability/cm-cluster-management-component-supporting-two-node-deployment.md @@ -31,4 +31,4 @@ This self-arbitration mechanism can effectively cope with the need for failover ## Related Pages -[Cluster Management](../../reference-guide/tool-reference/cluster-management/cluster-management.md), [CM supports two-node deployment](../../reference-guide/tool-reference/cluster-management/feature-introduction.md),[CM Fault](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file +[Cluster Management](../../high-available-guide/cluster-management/cluster-management.md), [CM supports two-node deployment](../../high-available-guide/cluster-management/feature-introduction.md),[CM Fault](../../common-faults-and-identification/common-fault-locating-cases/cm-fault/cm-fault.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cluster-management.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cluster-management.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cluster-management.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cluster-management.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/feature-introduction.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/feature-introduction.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/feature-introduction.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/feature-introduction.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_persist.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-cm_persist.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/manual-configuration-of-vip.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/manual-configuration-of-vip.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/safety-design.md b/product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/safety-design.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/tool-reference/cluster-management/safety-design.md rename to product/en/docs-mogdb/v5.1/high-available-guide/cluster-management/safety-design.md diff --git a/product/en/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference-dcf.md b/product/en/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md similarity index 100% rename from product/en/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference-dcf.md rename to product/en/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md diff --git a/product/en/docs-mogdb/v5.1/high-available-guide/high-available-guide.md b/product/en/docs-mogdb/v5.1/high-available-guide/high-available-guide.md new file mode 100644 index 00000000..24a63176 --- /dev/null +++ b/product/en/docs-mogdb/v5.1/high-available-guide/high-available-guide.md @@ -0,0 +1,11 @@ +--- +title: High Available Guide +summary: High Available Guide +author: Guo Huan +date: 2024-04-30 +--- + +# High Available Guide + +- **[DCF(Distributed Consensus Framework)](./high-available-dcf.md)** +- **[CM(Cluster Manager)](./cluster-management/cluster-management.md)** \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md b/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md index 50852424..d6f0a14b 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md @@ -7,4 +7,4 @@ date: 2023-04-07 # CM Parameters -Modifying CM parameters affects the running mechanism of MogDB. You are advised to ask MogDB engineers to do it for you. For details about how to modify the CM parameters, see [CM Configuration Parameters](../tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md). \ No newline at end of file +Modifying CM parameters affects the running mechanism of MogDB. You are advised to ask MogDB engineers to do it for you. For details about how to modify the CM parameters, see [CM Configuration Parameters](../../high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md). \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md b/product/en/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md index 23f16fae..bd93fc70 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/sql-reference/sql-reference.md @@ -20,7 +20,6 @@ date: 2023-04-07 - **[DML Syntax Overview](dml-syntax-overview.md)** - **[DCL Syntax Overview](dcl-syntax-overview.md)** - **[Subqueries](sub-query.md)** -- **[DCF](sql-reference-dcf.md)** - **[LLVM](sql-reference-llvm.md)** - **[Aliases](alias.md)** - **[Locks](sql-reference-lock.md)** diff --git a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md b/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md index 6346a2e6..1f13c00e 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/tool-reference/tool-reference.md @@ -13,7 +13,6 @@ This section introduces the client tool for connecting a database and command li - **[Client Tool](./client-tool/client-tool.md)** - **[Server Tools](./server-tools/server-tools.md)** - **[Tools Used in the Internal System](./tools-used-in-the-internal-system/tools-used-in-the-internal-system.md)** -- **[Cluster Management](./cluster-management/cluster-management.md)** - **[Functions of MogDB Executable Scripts](functions-of-mogdb-executable-scripts.md)** - **[System Catalogs and Views Supported by gs_collector](system-catalogs-and-views-supported-by-gs_collector.md)** - **[FAQ](FAQ.md)** \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/toc.md b/product/en/docs-mogdb/v5.1/toc.md index 51a8bb8a..30c32ca6 100644 --- a/product/en/docs-mogdb/v5.1/toc.md +++ b/product/en/docs-mogdb/v5.1/toc.md @@ -279,6 +279,18 @@ + [Exporting All Databases](/administrator-guide/importing-and-exporting-data/exporting-data/3-exporting-all-databases.md) + [Data Export By a User Without Required Permissions](/administrator-guide/importing-and-exporting-data/exporting-data/4-data-export-by-a-user-without-required-permissions.md) + [Upgrade Guide](/administrator-guide/upgrade-guide.md) ++ [High Available Guide](./high-available-guide/high-available-guide.md) + + [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) + + [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [Features](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [cm_install and cm_uninstall Tools](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [Security Design](./high-available-guide/cluster-management/safety-design.md) + + [CM Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [Manual Configuration of VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) + [AI Features Guide](/AI-features/ai-feature.md) + [AI4DB: Autonomous Database O&M](/AI-features/ai4db/ai4db-autonomous-database-o&m.md) + [DBMind Mode](/AI-features/ai4db/dbmind-mode/dbmind-mode.md) @@ -1321,7 +1333,6 @@ + [DML Syntax Overview](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL Syntax Overview](/reference-guide/sql-reference/dcl-syntax-overview.md) + [Subquery](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [Alias](./reference-guide/sql-reference/alias.md) + [Lock](./reference-guide/sql-reference/sql-reference-lock.md) @@ -1727,16 +1738,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [Cluster Management](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [Features](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [cm_install and cm_uninstall Tools](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [Security Design](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [Manual Configuration of VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [Functions of MogDB Executable Scripts](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [System Catalogs and Views Supported by gs_collector](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) diff --git a/product/en/docs-mogdb/v5.1/toc_datatypes-and-sql.md b/product/en/docs-mogdb/v5.1/toc_datatypes-and-sql.md index 30c6c935..3bc5467f 100644 --- a/product/en/docs-mogdb/v5.1/toc_datatypes-and-sql.md +++ b/product/en/docs-mogdb/v5.1/toc_datatypes-and-sql.md @@ -290,7 +290,6 @@ + [DML Syntax Overview](/reference-guide/sql-reference/dml-syntax-overview.md) + [DCL Syntax Overview](/reference-guide/sql-reference/dcl-syntax-overview.md) + [Sub-query](./reference-guide/sql-reference/sub-query.md) - + [DCF](./reference-guide/sql-reference/sql-reference-dcf.md) + [LLVM](./reference-guide/sql-reference/sql-reference-llvm.md) + [Alias](./reference-guide/sql-reference/alias.md) + [Lock](./reference-guide/sql-reference/sql-reference-lock.md) diff --git a/product/en/docs-mogdb/v5.1/toc_high_available.md b/product/en/docs-mogdb/v5.1/toc_high_available.md new file mode 100644 index 00000000..2dd6f904 --- /dev/null +++ b/product/en/docs-mogdb/v5.1/toc_high_available.md @@ -0,0 +1,18 @@ + + + +# MogDB Documentation 5.1 + +## High Available Guide + ++ [DCF(Distributed Consensus Framework)](./high-available-guide/high-available-dcf.md) ++ [CM(Cluster Manager)](./high-available-guide/cluster-management/cluster-management.md) + + [Features](./high-available-guide/cluster-management/feature-introduction.md) + + [cm_ctl](./high-available-guide/cluster-management/introduction-to-cm_ctl-tool.md) + + [cm_persist](./high-available-guide/cluster-management/introduction-to-cm_persist.md) + + [cm_install and cm_uninstall Tools](./high-available-guide/cluster-management/introduction-to-installation-and-uninstallation-tool.md) + + [Security Design](./high-available-guide/cluster-management/safety-design.md) + + [CM Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) + + [cm_agent Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_agent.md) + + [cm_server Parameters](./high-available-guide/cluster-management/cm-configuration-parameter/cm-cm_server.md) + + [Manual Configuration of VIP](./high-available-guide/cluster-management/manual-configuration-of-vip.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v5.1/toc_parameters-and-tools.md b/product/en/docs-mogdb/v5.1/toc_parameters-and-tools.md index e6263ae7..977604a8 100644 --- a/product/en/docs-mogdb/v5.1/toc_parameters-and-tools.md +++ b/product/en/docs-mogdb/v5.1/toc_parameters-and-tools.md @@ -388,16 +388,6 @@ + [pssh](./reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md) + [pscp](./reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md) + [transfer.py](./reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md) - + [Cluster Management](./reference-guide/tool-reference/cluster-management/cluster-management.md) - + [Features](./reference-guide/tool-reference/cluster-management/feature-introduction.md) - + [cm_ctl](./reference-guide/tool-reference/cluster-management/introduction-to-cm_ctl-tool.md) - + [cm_persist](./reference-guide/tool-reference/cluster-management/introduction-to-cm_persist.md) - + [cm_install and cm_uninstall Tools](./reference-guide/tool-reference/cluster-management/introduction-to-installation-and-uninstallation-tool.md) - + [Security Design](./reference-guide/tool-reference/cluster-management/safety-design.md) - + [CM Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md) - + [cm_agent Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_agent.md) - + [cm_server Parameters](./reference-guide/tool-reference/cluster-management/cm-configuration-parameter/cm-cm_server.md) - + [Manual Configuration of VIP](./reference-guide/tool-reference/cluster-management/manual-configuration-of-vip.md) + [FAQ](./reference-guide/tool-reference/FAQ.md) + [Functions of MogDB Executable Scripts](./reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + [System Catalogs and Views Supported by gs_collector](./reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md b/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md index 64b6c5eb..e589c930 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/cm-parameters.md @@ -7,4 +7,4 @@ date: 2023-04-07 # CM相关参数 -CM相关参数的修改对MogDB的运行机制有影响,建议由MogDB工程师协助修改。修改CM相关参数的方法,请参考[CM配置参数介绍](../tool-reference/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md)进行设置。 \ No newline at end of file +CM相关参数的修改对MogDB的运行机制有影响,建议由MogDB工程师协助修改。修改CM相关参数的方法,请参考[CM配置参数介绍](../../high-available-guide/cluster-management/cm-configuration-parameter/cm-configuration-parameter.md)进行设置。 \ No newline at end of file -- Gitee From 8802352049348467cf4959684eff88a3129ca6f5 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 7 May 2024 09:41:07 +0800 Subject: [PATCH 06/10] =?UTF-8?q?fix(mogdb):=E6=A0=BC=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../high-available-dcf.md | 8 +++++--- .../high-available-dcf.md | 20 ++++++++++--------- .../high-available-dcf.md | 1 + .../high-available-dcf.md | 18 +++++++++-------- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md b/product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md index 38c3f63a..d3c4e681 100644 --- a/product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md +++ b/product/en/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md @@ -15,8 +15,9 @@ DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use in [Figure 1](#dcf) shows the functional architecture of the DCF, including the algorithm modules, storage module, communication module, and service layer. -**Figure 1** Functional architecture of the DCF -![DCF功能架构图](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/functional-architecture-of-the-dcf.png) +**Figure 1** Functional architecture of the DCF + +![Functional architecture of the DCF](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/functional-architecture-of-the-dcf.png) - **Algorithm modules:** @@ -68,7 +69,8 @@ DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use in [Figure 2](#dcf2) shows the process of the flow control algorithm. **Figure 2** Process of the flow control algorithm - ![流控算法流程](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/process-of-the-flow-control-algorithm.jpg) + + ![Process of the flow control algorithm](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/process-of-the-flow-control-algorithm.jpg) The core algorithm process is as follows: diff --git a/product/en/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md b/product/en/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md index 38c3f63a..0bfaffae 100644 --- a/product/en/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md +++ b/product/en/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md @@ -15,8 +15,9 @@ DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use in [Figure 1](#dcf) shows the functional architecture of the DCF, including the algorithm modules, storage module, communication module, and service layer. -**Figure 1** Functional architecture of the DCF -![DCF功能架构图](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/functional-architecture-of-the-dcf.png) +**Figure 1** Functional architecture of the DCF + +![Functional architecture of the DCF](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/functional-architecture-of-the-dcf.png) - **Algorithm modules:** @@ -68,7 +69,8 @@ DCF is a high-performance, highly mature, reliable, scalable, and easy-to-use in [Figure 2](#dcf2) shows the process of the flow control algorithm. **Figure 2** Process of the flow control algorithm - ![流控算法流程](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/process-of-the-flow-control-algorithm.jpg) + + ![Process of the flow control algorithm](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/process-of-the-flow-control-algorithm.jpg) The core algorithm process is as follows: @@ -160,13 +162,13 @@ Each line of information is commented out. The content in bold is related to the To add a copy online, run the following command: - ```xml + ```shell # gs_ctl member --operation=add --nodeid= --ip= --port= -D ``` To reduce the number of copies online, run the following command: - ```xml + ```shell # gs_ctl member --operation=remove --nodeid= -D ``` @@ -178,7 +180,7 @@ Each line of information is commented out. The content in bold is related to the Run the following command to start up the minority: - ```xml + ```shell # cm_ctl setrunmode -n -D --xmode=minority --votenum= ``` @@ -186,7 +188,7 @@ Each line of information is commented out. The content in bold is related to the Run the following command to resume the majority. - ```xml + ```shell # cm_ctl setrunmode -n -D --xmode=normal --votenum= ``` @@ -196,7 +198,7 @@ Each line of information is commented out. The content in bold is related to the To promote a standby node to primary, run the following command: - ```xml + ```shell # cm_ctl switchover –n -D ``` @@ -206,6 +208,6 @@ Each line of information is commented out. The content in bold is related to the To start full build, run the following command: - ```css + ```shell gs_ctl build -b full -D ``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md b/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md index b40832e7..afca20e5 100644 --- a/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md +++ b/product/zh/docs-mogdb/v5.0/high-available-guide/high-available-dcf.md @@ -16,6 +16,7 @@ DCF是一款高性能、高度成熟可靠、易扩展、易使用的独立基 DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模块、通信模块、服务层等。 **图 1** DCF功能架构图 + ![DCF功能架构图](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/sql-reference-dcf-1.png) - **算法模块**: diff --git a/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md b/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md index 005573d7..582b0721 100644 --- a/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md +++ b/product/zh/docs-mogdb/v5.1/high-available-guide/high-available-dcf.md @@ -16,6 +16,7 @@ DCF是一款高性能、高度成熟可靠、易扩展、易使用的独立基 DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模块、通信模块、服务层等。 **图 1** DCF功能架构图 + ![DCF功能架构图](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/sql-reference-dcf-1.png) - **算法模块**: @@ -68,6 +69,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 流控算法主要流程如[图2](#dcf2)所示: **图 2** 流控算法流程 + ![流控算法流程](https://cdn-mogdb.enmotech.com/docs-media/mogdb/reference-guide/sql-reference-dcf-2.PNG) 核心算法流程如下: @@ -87,7 +89,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 每行信息均有注释进行说明。加粗字体内容为DCF相关内容。示例如下: -``` +```xml @@ -120,7 +122,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 使用gs_ctl查询集群状态。 - ``` + ```shell # gs_ctl query –D # gs_ctl query -D /nvme0/gaussdb/cluster/nvme0/dn1 HA state: @@ -160,13 +162,13 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 若在线增加副本,执行以下一条命令即可。 - ``` + ```shell # gs_ctl member --operation=add --nodeid= --ip= --port= -D ``` 若需在线降副本,执行下面命令: - ``` + ```shell # gs_ctl member --operation=remove --nodeid= -D ``` @@ -178,7 +180,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 使用命令如下: - ``` + ```shell # cm_ctl setrunmode -n -D --xmode=minority --votenum= ``` @@ -186,7 +188,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 加回命令为: - ``` + ```shell # cm_ctl setrunmode -n -D --xmode=normal --votenum= ``` @@ -196,7 +198,7 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 例如节点备升主操作命令: - ``` + ```shell # cm_ctl switchover –n -D ``` @@ -206,6 +208,6 @@ DCF功能架构如[图1](#dcf)所示,主要包括:功能模块、存储模 命令示例如下: - ``` + ```shell gs_ctl build -b full -D ``` \ No newline at end of file -- Gitee From 06612b2920231090553c6863d76085d8ff601b9b Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 7 May 2024 10:53:32 +0800 Subject: [PATCH 07/10] =?UTF-8?q?fix(mogdb):asp=5Fsample=5Fnum=E5=8F=96?= =?UTF-8?q?=E5=80=BC=E8=8C=83=E5=9B=B4=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../27-system-performance-snapshot.md | 2 +- .../27-system-performance-snapshot.md | 2 +- .../27-system-performance-snapshot.md | 2 +- .../system-performance-snapshot.md | 248 +++++++++--------- .../system-performance-snapshot.md | 2 +- .../27-system-performance-snapshot.md | 2 +- .../27-system-performance-snapshot.md | 2 +- .../27-system-performance-snapshot.md | 2 +- .../system-performance-snapshot.md | 2 +- .../system-performance-snapshot.md | 2 +- 10 files changed, 133 insertions(+), 133 deletions(-) diff --git a/product/en/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md b/product/en/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md index 724fb511..0109b5b8 100644 --- a/product/en/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md +++ b/product/en/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md @@ -106,7 +106,7 @@ This parameter is a SIGHUP parameter. Set it based on instructions provided in T This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](30-appendix.md). -**Value range**: an integer ranging from 10000 to 100000 +**Value range**: an integer ranging from 10 to 100000 **Default value**: **100000** diff --git a/product/en/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md b/product/en/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md index da41545c..4534fefb 100644 --- a/product/en/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md +++ b/product/en/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md @@ -106,7 +106,7 @@ This parameter is a SIGHUP parameter. Set it based on instructions provided in T This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](30-appendix.md). -**Value range**: an integer ranging from 10000 to 100000 +**Value range**: an integer ranging from 10 to 100000 **Default value**: **100000** diff --git a/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md b/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md index da41545c..4534fefb 100644 --- a/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md +++ b/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md @@ -106,7 +106,7 @@ This parameter is a SIGHUP parameter. Set it based on instructions provided in T This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](30-appendix.md). -**Value range**: an integer ranging from 10000 to 100000 +**Value range**: an integer ranging from 10 to 100000 **Default value**: **100000** diff --git a/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md b/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md index 2c1e3277..55e44411 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md @@ -1,124 +1,124 @@ ---- -title: System Performance Snapshot -summary: System Performance Snapshot -author: Zhang Cuiping -date: 2021-04-20 ---- - -# System Performance Snapshot - -## enable_wdr_snapshot - -**Parameter description**: Specifies whether to enable the database monitoring snapshot function. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: Boolean - -- **on** indicates that the database monitoring snapshot function is enabled. -- **off** indicates that the database monitoring snapshot function is disabled. - -**Default value**: **off** - -## wdr_snapshot_retention_days - -**Parameter description**: Specifies the number of days for storing database monitoring snapshot data in the system. When the number of snapshots generated during database running exceeds the maximum number of snapshots that can be generated within the retention period, the system clears the snapshot data with the smallest **snapshot_id** at the interval specified by **wdr_snapshot_interval**. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 1 to 8 - -**Default value**: **8** - -## wdr_snapshot_query_timeout - -**Parameter description**: Specifies the execution timeout for the SQL statements associated with database monitoring snapshot operations. If the SQL statement execution is not complete and a result is not returned within the specified time, the snapshot operation fails. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 100 to *INT_MAX*. The unit is s. - -**Default value**: **100s** - -## wdr_snapshot_interval - -**Parameter description**: Specifies the interval at which the background thread Snapshot automatically performs snapshot operations on the database monitoring data. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 10 to 60. The unit is m. - -**Default value**: **1h** - -## asp_flush_mode - -**Parameter description**: Specifies the mode for the ASP to update data to the disk. The value can be **file** (default value), **table** (system catalog), or **all** (system catalog and file). Only the sysadmin user can access this parameter. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: a string, which can be **table**, **file**, or **all** - -**Default value**: **table** - -## asp_flush_rate - -**Parameter description**: When the number of samples reaches the value of **asp_sample_num**, the samples in the memory are updated to the disk based on a certain proportion. **asp_flush_rate** indicates the update proportion. If this parameter is set to **10**, it indicates that the update ratio is 10:1. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 1 to 10 - -**Default value**: **10** - -## asp_log_filename - -**Parameter description**: Specifies the file name format when writing files using ASP. Only the sysadmin user can access this parameter. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: a string - -**Default value**: **asp-%Y-%m-%d_%H%M%S.log** - -## asp_retention_days - -**Parameter description**: Specifies the maximum number of days for reserving ASP samples when they are written to the system catalog. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 1 to 7 - -**Default value**: **2** - -## asp_sample_interval - -**Parameter description**: Specifies the sampling interval. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 1 to 10. The unit is s. - -**Default value**: **1s** - -## asp_sample_num - -**Parameter description**: Specifies the maximum number of samples allowed in the LOCAL_ACTIVE_SESSION view. Only the sysadmin user can access this parameter. - -This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: an integer ranging from 10000 to 100000 - -**Default value**: **100000** - -## enable_asp - -**Parameter description:**Specifies whether to enable the active session profile function. - -This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). - -**Value range**: Boolean - -- **on**: The function is enabled. -- **off**: The function is disabled. - -**Default value**: **on** +--- +title: System Performance Snapshot +summary: System Performance Snapshot +author: Zhang Cuiping +date: 2021-04-20 +--- + +# System Performance Snapshot + +## enable_wdr_snapshot + +**Parameter description**: Specifies whether to enable the database monitoring snapshot function. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: Boolean + +- **on** indicates that the database monitoring snapshot function is enabled. +- **off** indicates that the database monitoring snapshot function is disabled. + +**Default value**: **off** + +## wdr_snapshot_retention_days + +**Parameter description**: Specifies the number of days for storing database monitoring snapshot data in the system. When the number of snapshots generated during database running exceeds the maximum number of snapshots that can be generated within the retention period, the system clears the snapshot data with the smallest **snapshot_id** at the interval specified by **wdr_snapshot_interval**. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 1 to 8 + +**Default value**: **8** + +## wdr_snapshot_query_timeout + +**Parameter description**: Specifies the execution timeout for the SQL statements associated with database monitoring snapshot operations. If the SQL statement execution is not complete and a result is not returned within the specified time, the snapshot operation fails. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 100 to *INT_MAX*. The unit is s. + +**Default value**: **100s** + +## wdr_snapshot_interval + +**Parameter description**: Specifies the interval at which the background thread Snapshot automatically performs snapshot operations on the database monitoring data. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 10 to 60. The unit is m. + +**Default value**: **1h** + +## asp_flush_mode + +**Parameter description**: Specifies the mode for the ASP to update data to the disk. The value can be **file** (default value), **table** (system catalog), or **all** (system catalog and file). Only the sysadmin user can access this parameter. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: a string, which can be **table**, **file**, or **all** + +**Default value**: **table** + +## asp_flush_rate + +**Parameter description**: When the number of samples reaches the value of **asp_sample_num**, the samples in the memory are updated to the disk based on a certain proportion. **asp_flush_rate** indicates the update proportion. If this parameter is set to **10**, it indicates that the update ratio is 10:1. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 1 to 10 + +**Default value**: **10** + +## asp_log_filename + +**Parameter description**: Specifies the file name format when writing files using ASP. Only the sysadmin user can access this parameter. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: a string + +**Default value**: **asp-%Y-%m-%d_%H%M%S.log** + +## asp_retention_days + +**Parameter description**: Specifies the maximum number of days for reserving ASP samples when they are written to the system catalog. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 1 to 7 + +**Default value**: **2** + +## asp_sample_interval + +**Parameter description**: Specifies the sampling interval. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 1 to 10. The unit is s. + +**Default value**: **1s** + +## asp_sample_num + +**Parameter description**: Specifies the maximum number of samples allowed in the LOCAL_ACTIVE_SESSION view. Only the sysadmin user can access this parameter. + +This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: an integer ranging from 10 to 100000 + +**Default value**: **100000** + +## enable_asp + +**Parameter description:**Specifies whether to enable the active session profile function. + +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). + +**Value range**: Boolean + +- **on**: The function is enabled. +- **off**: The function is disabled. + +**Default value**: **on** diff --git a/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md b/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md index 61dd92b9..55e44411 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md @@ -106,7 +106,7 @@ This parameter is a SIGHUP parameter. Set it based on instructions provided in T This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](appendix.md). -**Value range**: an integer ranging from 10000 to 100000 +**Value range**: an integer ranging from 10 to 100000 **Default value**: **100000** diff --git a/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md b/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md index 40d863aa..140398d8 100644 --- a/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md +++ b/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/27-system-performance-snapshot.md @@ -106,7 +106,7 @@ date: 2021-04-20 该参数属于POSTMASTER类型参数,请参考表[GUC参数分类](30-appendix.md)中对应设置方法进行设置。 -**取值范围**: 整型,10000~100000。 +**取值范围**: 整型,10~100000。 **默认值**: 100000 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md index 8311c459..d4ac7bf4 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/27-system-performance-snapshot.md @@ -106,7 +106,7 @@ date: 2021-04-20 该参数属于POSTMASTER类型参数,请参考表[GUC参数分类](30-appendix.md)中对应设置方法进行设置。 -**取值范围**: 整型,10000~100000。 +**取值范围**: 整型,10~100000。 **默认值**: 100000 diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md b/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md index 8311c459..d4ac7bf4 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/27-system-performance-snapshot.md @@ -106,7 +106,7 @@ date: 2021-04-20 该参数属于POSTMASTER类型参数,请参考表[GUC参数分类](30-appendix.md)中对应设置方法进行设置。 -**取值范围**: 整型,10000~100000。 +**取值范围**: 整型,10~100000。 **默认值**: 100000 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md index 12aeb221..f8a96e06 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/system-performance-snapshot.md @@ -106,7 +106,7 @@ date: 2021-04-20 该参数属于POSTMASTER类型参数,请参考表[GUC参数分类](appendix.md)中对应设置方法进行设置。 -**取值范围**: 整型,10000~100000。 +**取值范围**: 整型,10~100000。 **默认值**: 100000 diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md b/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md index 30edcffb..11a88a0c 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/guc-parameters/system-performance-snapshot.md @@ -106,7 +106,7 @@ date: 2021-04-20 该参数属于POSTMASTER类型参数,请参考表[GUC参数分类](appendix.md)中对应设置方法进行设置。 -**取值范围**: 整型,10000~100000。 +**取值范围**: 整型,10~100000。 **默认值**: 100000 -- Gitee From cb7dfc05db8d786403cf497c72b22cb234217fe4 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 7 May 2024 15:55:23 +0800 Subject: [PATCH 08/10] =?UTF-8?q?fix(mogdb):DROP=20FUNCTION=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E5=8F=82=E6=95=B0=E6=8F=8F=E8=BF=B0=E5=92=8C=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 28 ++++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- .../sql-syntax/DROP-FUNCTION.md | 26 ++++++++++++++++- 14 files changed, 364 insertions(+), 14 deletions(-) diff --git a/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 161bb00f..fd6e4fb2 100644 --- a/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,6 +47,32 @@ DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. diff --git a/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md index d7583420..9060e107 100644 --- a/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,6 +47,32 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. diff --git a/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md index ae7cb07d..8468443b 100644 --- a/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,35 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. ## Helpful Links diff --git a/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md index 63ab355c..a385a846 100644 --- a/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,35 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. ## Helpful Links diff --git a/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 63ab355c..a385a846 100644 --- a/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,35 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. ## Helpful Links diff --git a/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md index 63ab355c..a385a846 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,35 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. ## Helpful Links diff --git a/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 63ab355c..a385a846 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,35 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name Specifies the parameter type of the function. +- **CASCADE** + + Automatically drop objects that depend on the function (such as operators or triggers), and in turn all objects that depend on those objects. + +- **RESTRICT** + + Refuse to drop the function if any objects depend on it. This is the default. + ## Examples -For details, see **Examples**. +This command removes the square root function: + +```sql +DROP FUNCTION sqrt(integer); +``` + +If the function name is unique in its schema, it can be referred to without an argument list: + +```sql +DROP FUNCTION update_employee_salaries; +``` + +Note that this is different from + +```sql +DROP FUNCTION update_employee_salaries(); +``` + +which refers to a function with zero arguments, whereas the first variant can refer to a function with any number of arguments, including zero, as long as the name is unique. ## Helpful Links diff --git a/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 77775eee..ec2f1935 100644 --- a/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,6 +47,30 @@ DROP FUNCTION [ IF EXISTS ] function_name 函数参数的类型 +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 + ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` diff --git a/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md index f3178d31..f45e4ac6 100644 --- a/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,33 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name 函数参数的类型 +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 + ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` ## 相关链接 diff --git a/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 3da3a1d0..537aa519 100644 --- a/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,33 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name 函数参数的类型 +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 + ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` ## 相关链接 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md index 6d9f266d..486ee4c5 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -47,9 +47,33 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name 函数参数的类型 +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 + ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` ## 相关链接 diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 321ea312..9e780c5a 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -48,9 +48,33 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name 函数参数的类型 +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 + ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` ## 相关链接 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md index 2e7d68f7..e3cae236 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -48,10 +48,34 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name - **argtype** 函数参数的类型 + +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` ## 相关链接 diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md b/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md index 2e7d68f7..b5803ab9 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-FUNCTION.md @@ -49,9 +49,33 @@ DropFunction ::= DROP FUNCTION [ IF EXISTS ] function_name 函数参数的类型 +- **CASCADE** + + 自动删除依赖于该函数的对象(例如操作符和触发器),并删除所有依赖于这些对象的对象。 + +- **RESTRICT** + + 不删除依赖于该函数的对象(默认)。 + ## 示例 -请参见的示例。 +以下命令删除平方根函数: + +```sql +DROP FUNCTION sqrt(integer); +``` + +如果函数名在其模式中是唯一的,则可以在不带参数列表的情况下引用它,以下命令会删除具有任意数量参数的函数(包括零): + +```sql +DROP FUNCTION update_employee_salaries; +``` + +与此不同的是,以下命令删除的函数具有的参数个数为零: + +```sql +DROP FUNCTION update_employee_salaries(); +``` ## 相关链接 -- Gitee From 7447a880660ad4e609ea305d289d92c7d0c7fece Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 7 May 2024 16:19:37 +0800 Subject: [PATCH 09/10] =?UTF-8?q?fix(mogdb):DROP=20PROCEDURE=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 18 +++++++++++++++++- .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ .../sql-syntax/DROP-PROCEDURE.md | 18 +++++++++++++++++- .../sql-syntax/DROP-PROCEDURE.md | 18 +++++++++++++++++- .../sql-syntax/DROP-PROCEDURE.md | 18 +++++++++++++++++- .../sql-syntax/DROP-PROCEDURE.md | 16 ++++++++++++++++ 14 files changed, 228 insertions(+), 4 deletions(-) diff --git a/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index d00b5d38..52cef512 100644 --- a/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -32,3 +32,19 @@ DROP PROCEDURE [ IF EXISTS ] procedure_name ; Specifies the name of the stored procedure to be deleted. Value range: an existing stored procedure name + +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` \ No newline at end of file diff --git a/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md index 5588661d..de3cfa03 100644 --- a/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -32,3 +32,19 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name ; Specifies the name of the stored procedure to be deleted. Value range: an existing stored procedure name + +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` \ No newline at end of file diff --git a/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 5213eb5c..e09364d3 100644 --- a/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name ; Value range: an existing stored procedure name +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## Helpful Links -[CREATE PROCEDURE](CREATE-PROCEDURE.md) +[CREATE PROCEDURE](CREATE-PROCEDURE.md) \ No newline at end of file diff --git a/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md index 5213eb5c..5673a52c 100644 --- a/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name ; Value range: an existing stored procedure name +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## Helpful Links [CREATE PROCEDURE](CREATE-PROCEDURE.md) diff --git a/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 5213eb5c..5673a52c 100644 --- a/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name ; Value range: an existing stored procedure name +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## Helpful Links [CREATE PROCEDURE](CREATE-PROCEDURE.md) diff --git a/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md index 5213eb5c..5673a52c 100644 --- a/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name ; Value range: an existing stored procedure name +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## Helpful Links [CREATE PROCEDURE](CREATE-PROCEDURE.md) diff --git a/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 5213eb5c..5673a52c 100644 --- a/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/en/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name ; Value range: an existing stored procedure name +## Examples + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## Helpful Links [CREATE PROCEDURE](CREATE-PROCEDURE.md) diff --git a/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 3abcc824..11763e78 100644 --- a/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v1.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -32,3 +32,19 @@ DROP PROCEDURE [ IF EXISTS ] procedure_name ; 要删除的存储过程名称。 取值范围: 已存在的存储过程名。 + +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md index 1eb874ee..1bcc1640 100644 --- a/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v2.0/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -32,3 +32,19 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name; 要删除的存储过程名称。 取值范围: 已存在的存储过程名。 + +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 299defcc..979f3179 100644 --- a/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -36,3 +36,19 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name; ## 相关链接 [CREATE PROCEDURE](CREATE-PROCEDURE.md) + +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md index 299defcc..8cba7e6a 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name; 取值范围: 已存在的存储过程名。 +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## 相关链接 -[CREATE PROCEDURE](CREATE-PROCEDURE.md) +[CREATE PROCEDURE](CREATE-PROCEDURE.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 06c3c872..a0696e08 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -33,6 +33,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name; 取值范围: 已存在的存储过程名。 +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## 相关链接 -[CREATE PROCEDURE](CREATE-PROCEDURE.md) +[CREATE PROCEDURE](CREATE-PROCEDURE.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md index 4857716c..738d77e1 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -34,6 +34,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name; 取值范围: 已存在的存储过程名。 +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## 相关链接 -[CREATE PROCEDURE](CREATE-PROCEDURE.md) +[CREATE PROCEDURE](CREATE-PROCEDURE.md) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md b/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md index 4857716c..c8390150 100644 --- a/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md +++ b/product/zh/docs-mogdb/v5.1/reference-guide/sql-syntax/DROP-PROCEDURE.md @@ -34,6 +34,22 @@ DropProcedure ::= DROP PROCEDURE [ IF EXISTS ] procedure_name; 取值范围: 已存在的存储过程名。 +## 示例 + +```sql +create procedure test_pro( +section number(6), +salary_sum out number(8,2), +staffs_count out integer) +is +begin + select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; +end; +/ + +drop procedure if exists test_pro (section numeric,out salary_sum numeric,OUT staffs_count integer); +``` + ## 相关链接 [CREATE PROCEDURE](CREATE-PROCEDURE.md) -- Gitee From 84f308428975056b52f50c641a2b3ee7665b45d6 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 7 May 2024 17:09:20 +0800 Subject: [PATCH 10/10] =?UTF-8?q?fix(mogdb):5.0.6=20release=20note?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=87=E7=BA=A7=E6=8C=87=E5=8D=97=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md b/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md index 04cf16f8..51941745 100644 --- a/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md +++ b/product/zh/docs-mogdb/v5.0/about-mogdb/mogdb-new-feature/5.0.6.md @@ -166,4 +166,8 @@ MogDB对读写请求的处理全部放在事务机制下,这与Oracle读不启 31. 【4006】修复了配置VIP的数据库集群自动故障切换后客户端链接低概率卡住的问题 32. 【3736】修复了配置VIP场景下,CM(Cluster Manager)集群自身故障切换可能导致数据库集群自动故障切换的问题 33. 【3283】修复了修改most_available_sync参数且执行reload命令之后,参数无法立即生效的问题 -34. 【3167】修复使用select ... for share语法时,有几率会导致查询时出现找不到CSN文件的问题 \ No newline at end of file +34. 【3167】修复使用select ... for share语法时,有几率会导致查询时出现找不到CSN文件的问题 + +## 4. 升级指南 + +查看最新版本的[升级指南](../../administrator-guide/upgrade-guide.md),或点此下载[适用于MogDB V5.0.6的升级指南](https://cdn-mogdb.enmotech.com/mogdb-media/5.0.6/MogDBV5.0.6升级指南.docx)。 \ No newline at end of file -- Gitee