diff --git a/product/en/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md b/product/en/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md index 896e708119cf9e183aff24f96bc9a67be5db30d3..1d6992b298231b9878784a8cef26e76acf76d50e 100644 --- a/product/en/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md +++ b/product/en/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md @@ -24,6 +24,7 @@ This feature can realize the real sense of transaction asynchronous commit, whic ## Constraints - This feature is valid only in threadpool mode, non-threadpool mode does not support transaction asynchronous commit. That is, set "enable_thread_pool = on" and "synchronous_commit" not to "off". +- The **async_submit** parameter is required to be set to **on**. ## Related Pages diff --git a/product/en/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md b/product/en/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md index 6fedce89945240b4d3f3d684debc168c3f7c9412..f51b3a048a477fc24d4eda2e0ac43858b53e0a24 100644 --- a/product/en/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md +++ b/product/en/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md @@ -24,6 +24,7 @@ This feature can realize the real sense of transaction asynchronous commit, whic ## Constraints - This feature is valid only in threadpool mode, non-threadpool mode does not support transaction asynchronous commit. That is, set "enable_thread_pool = on" and "synchronous_commit" not to "off". +- The **async_submit** parameter is required to be set to **on**. ## Related Pages diff --git a/product/en/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md b/product/en/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md index 6fedce89945240b4d3f3d684debc168c3f7c9412..f51b3a048a477fc24d4eda2e0ac43858b53e0a24 100644 --- a/product/en/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md +++ b/product/en/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md @@ -24,6 +24,7 @@ This feature can realize the real sense of transaction asynchronous commit, whic ## Constraints - This feature is valid only in threadpool mode, non-threadpool mode does not support transaction asynchronous commit. That is, set "enable_thread_pool = on" and "synchronous_commit" not to "off". +- The **async_submit** parameter is required to be set to **on**. ## Related Pages diff --git a/product/zh/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md b/product/zh/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md index d8dc3f51966f47e5e27eac3ad00befaacb2d6500..027e40a69009ae222c315a2e37e9934c7bb10d58 100644 --- a/product/zh/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md +++ b/product/zh/docs-mogdb/v3.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md @@ -24,6 +24,7 @@ date: 2022-06-13 ## 特性约束 - 该功能仅在线程池模式下打开有效,非线程池模式下不支持事务异步提交。即设置“enable_thread_pool = on”和“synchronous_commit”不为“off”。 +- 将参数“async_submit”设置为“on”。 ## 相关页面 diff --git a/product/zh/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md b/product/zh/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md index 3178738353fae5cc1b8e165a100426c29a161387..5825a4a5ecae0f7c678c672278103943e7a760ec 100644 --- a/product/zh/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md +++ b/product/zh/docs-mogdb/v3.1/characteristic-description/enterprise-level-features/19-transaction-async-submit.md @@ -24,6 +24,7 @@ date: 2022-06-13 ## 特性约束 - 该功能仅在线程池模式下打开有效,非线程池模式下不支持事务异步提交。即设置“enable_thread_pool = on”和“synchronous_commit”不为“off”。 +- 将参数“async_submit”设置为“on”。 ## 相关页面 diff --git a/product/zh/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md b/product/zh/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md index 3178738353fae5cc1b8e165a100426c29a161387..5825a4a5ecae0f7c678c672278103943e7a760ec 100644 --- a/product/zh/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md +++ b/product/zh/docs-mogdb/v5.0/characteristic-description/enterprise-level-features/19-transaction-async-submit.md @@ -24,6 +24,7 @@ date: 2022-06-13 ## 特性约束 - 该功能仅在线程池模式下打开有效,非线程池模式下不支持事务异步提交。即设置“enable_thread_pool = on”和“synchronous_commit”不为“off”。 +- 将参数“async_submit”设置为“on”。 ## 相关页面 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_1.md b/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_DBE_PERF.md similarity index 98% rename from product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_1.md rename to product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_DBE_PERF.md index 3cff71e47abba6f532a92bdecbd5809150e15291..7ad5bb2394807bd00158e6d4d3813d6dd080c97a 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_1.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_DBE_PERF.md @@ -65,6 +65,7 @@ date: 2021-04-19 | details | bytea | 等待事件和语句锁事件的列表。
记录级别的值是L0时,开始记录等待事件的列表。显示当前语句event等待相关的统计信息。具体事件信息见[等待状态列表](../../../system-catalogs-and-system-views/system-views/PG_THREAD_WAIT_STATUS.md)、[轻量级锁等待事件列表](../../../system-catalogs-and-system-views/system-views/PG_THREAD_WAIT_STATUS.md)、[IO等待事件列表](../../../system-catalogs-and-system-views/system-views/PG_THREAD_WAIT_STATUS.md)和[事务锁等待事件列表](../../../system-catalogs-and-system-views/system-views/PG_THREAD_WAIT_STATUS.md)。关于每种事务锁对业务的影响程度,请参考[LOCK](../../../sql-syntax/LOCK.md)语法小节的详细描述。
记录级别的值是L2时,开始记录语句锁事件的列表,该列表按时间顺序记录事件,记录的数量受参数track_stmt_details_size的影响。
事件包括:
- 加锁开始
- 加锁结束
- 等锁开始
- 等锁结束
- 放锁开始
- 放锁结束
- 轻量级等锁开始
- 轻量级等锁结束 | | is_slow_sql | boolean | 该SQL是否为slow SQL | | trace_id | text | 驱动传入的trace id,与应用的一次请求相关联。 | +| advise text | text | 可能导致该SQL为slow SQL的风险信息。 | ## 相关特性 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/0-gs_cgroup.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_cgroup.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/0-gs_cgroup.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_cgroup.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/2-gs_checkos.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_checkos.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/2-gs_checkos.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_checkos.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/7.1-gs_encrypt.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_encrypt.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/7.1-gs_encrypt.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_encrypt.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/7-gs_guc.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_guc.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/7-gs_guc.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_guc.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/8-gs_om.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_om.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/8-gs_om.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_om.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/9-gs_restore.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_restore.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/9-gs_restore.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_restore.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/10-gs_ssh.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_ssh.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/10-gs_ssh.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/server-tools/gs_ssh.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/dsscmd.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/dsscmd.md new file mode 100644 index 0000000000000000000000000000000000000000..308b49089a0528e9a56c11d30c94054f3ec5002b --- /dev/null +++ b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/dsscmd.md @@ -0,0 +1,386 @@ +--- +title: dsscmd +summary: dsscmd +author: zhang cuiping +date: 2023-04-07 +--- + +# dsscmd + +## 概述 + +MogDB部署资源池化模式且开启ss_enable_dss功能情况下,经常需要对基于磁阵实现的集群文件系统进行各种查询,操作和管理。为了对dss创建的文件系统进行有效的管理,资源池化提供了dsscmd管理工具。 + +## 命令 + +- 显示帮助信息 + + ``` + dsscmd -h + dsscmd --help + ``` + +- 显示dss的版本号 + + ``` + dsscmd -v + dsscmd --version + ``` + +- 创建卷组 + + ``` + dsscmd cv <-g vg_name> <-v vol_name> [-s au_size] [-D DSS_HOME] + ``` + + 此处的vg_name为卷组名,命名长度不能超过64,仅支持数字,大小写字母,和部分特殊字符 '_ ' , ' . ' , ' - ' 。其他字符不支持。 + +- 显示卷组和磁盘使用信息 + + ``` + dsscmd lsvg [-m measure_type] [-t show_type] [-U UDS:socket_domain] + ``` + +- 卷组中添加卷 + + ``` + dsscmd adv <-g vg_name> <-v vol_name> [-U UDS:socket_domain] + ``` + + 此处的vg_name为卷组名,不需要以‘+’开头。 + +- 新建目录 + + ``` + dsscmd mkdir <-p path> <-d dir_name> [-U UDS:socket_domain] + ``` + +- 创建文件 + + ``` + dsscmd touch <-p path> [-U UDS:socket_domain] + ``` + +- 显示路径下文件信息 + + ``` + dsscmd ls <-p path> [-m measure_type] [-U UDS:socket_domain] + ``` + +- 将源文件复制到目标文件 + + ``` + dsscmd cp <-s src_file> <-d dest_file> [-U UDS:socket_domain] + ``` + + 此处的src_file和dest_file为带路径的文件名,使用限制参考“参数说明”部分的path。 + +- 删除卷组文件 + + ``` + dsscmd rm <-p path> [-U UDS:socket_domain] + ``` + +- 删除卷组中的卷 + + ``` + dsscmd rmv <-g vg_name> <-v vol_name> [-U UDS:socket_domain] + ``` + + 此处的vg_name为卷组名,不需要以‘+’开头。 + +- 删除目录及其内容 + + ``` + dsscmd rmdir <-p path> [-r] [-U UDS:socket_domain path] + ``` + + 此处-r代表级联删除。 + +- 查询LUN/注册信息 + + ``` + dsscmd inq <-t inq_type> + ``` + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** inq_type表示查询信息的类型。取值如下: + > + > - lun: 查询LUN信息。 + > - reg: 查询reservations信息。 + +- 查询该节点是否注册 + + ``` + dsscmd inq_reg <-i inst_id> [-D DSS_HOME] + ``` + +- 显示客户端信息 + + ``` + dsscmd lscli + ``` + +- 从集群中踢出非当前节点,第一个参数是要移除的节点id + + ``` + dsscmd kickh <-i inst_id> [-D DSS_HOME] + ``` + +- 将节点添加到集群,不走服务端 + + ``` + dsscmd reghl [-D DSS_HOME] + ``` + +- 将节点从集群中移除,不走服务端 + + ``` + dsscmd unreghl [-t type] [-D DSS_HOME] + ``` + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** + > + > - type: 值为int类型,0表示不使用vg锁,非0表示使用vg锁,默认值为1。 + +- 扫描并打开指定路径下指定用户和属组的盘符,不走服务端 + + ``` + dsscmd scandisk <-t type> <-p path> <-u user_name> <-g group_name> + ``` + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** + > + > - type: 盘符类型,当前只支持block块设备。 + > - \[path]\[user_name][group_name]: 该字段中不能含有命令注入安全隐患的非法字符: '|', ';', '&', '$', '<', '>', '`', '\', '\'', '\"', '{', '}', '(', ')', '[', ']', '~', '*', '?', ' ', '!', '\n'。 + > - user_name: 操作系统的用户名。 + > - group_name: 操作系统的属组。 + +- 设置dss节点的auid + + ``` + dsscmd auid <-a auid> + ``` + + 此处的auid是一个64位的值。 + +- 读取dss文件内容 + + ``` + dsscmd examine <-p path> <-o offset> <-f format> [-s read_size] [-D DSS_HOME] [-U UDS:socket_domain] + ``` + + 此处format为读取文件内容的格式,取值范围为:c char、h unsigned short、u unsigned int、l unsigned long、s string、x hex。 + +- 读取磁阵文件内容 + + ``` + dsscmd dev <-p path> <-o offset> <-f format> [-D DSS_HOME] + ``` + + 此处format为读取文件内容的格式,取值范围为:c char、h unsigned short、u unsigned int、l unsigned long、s string、x hex。 + +- 显示磁盘信息 + + ``` + dsscmd showdisk <-g vg_name> <-s struct_name> [-D DSS_HOME] + dsscmd showdisk <-g vg_name> <-b block_id> <-n node_id> [-D DSS_HOME] + ``` + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** + > + > - struct_name: 指定输出信息的文件类型。取值范围: core_ctrl、vg_header、volume_ctrl、root_ft_block。 + > - 如果指定参数-b block_id,则需指定-n node_id。 + > - blocl_id是一个64位的值,前10位是volume_id,34位是au_id,17位是block_id,最后3位是预留。 + +- 重命名文件名 + + ``` + dsscmd rename <-o old_name> <-n new_name> [-U UDS:socket_domain] + ``` + + 此处的old_name和new_name为带路径的文件名,使用限制参考“参数说明”部分的path。 + +- 显示带有可选参数的文件/目录的磁盘使用情况 + + ``` + dsscmd du <-p path> [-f format] [-U UDS:socket_domain] + ``` + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** format:支持3种参数,参数之间不需要任何分隔符。 + > + > - B|K|M|G|T B: Byte, K: KB ,M: MB , G: GB, T: TB。 + > - s|a s :目录,a:计算所有文件,而不仅仅是目录。 + > - S 对于目录不包括子目录的大小。 + +- 按文件名查找文件所在路径 + + ``` + dsscmd find <-p path> <-n name> [-U UDS:socket_domain] + ``` + +- 创建软连接 + + ``` + dsscmd ln <-s src_path> <-t target_path> [-U UDS:socket_domain] + ``` + + 此处的src_path和target_path是目录或者带路径的文件名,使用限制参考“参数说明”部分的path。 + +- 显示文件链接信息 + + ``` + dsscmd readlink <-p path> [-U UDS:socket_domain] + ``` + +- 取消软连接 + + ``` + dsscmd unlink <-p path> [-U UDS:socket_domain] + ``` + +- 加密 + + ``` + dsscmd encrypt + ``` + +- 设置配置项 + + ``` + dsscmd setcfg <-n name> <-v value> [-s scope] [-U UDS:socket_domain] + ``` + +- 获取配置项信息 + + ``` + dsscmd getcfg <-n name> [-U UDS:socket_domain] + ``` + +- 通知dss服务端进行优雅退出,异步关闭dssserver进程 + + ``` + dsscmd stopdss [-U UDS:socket_domain] + ``` + +- 清理dss内部的锁资源 + + ``` + dsscmd clean_vglock [-D DSS_HOME] + ``` + +## 参数说明 + +- show_type + + d显示详细信息,t显示表中的信息。 + +- au_size: + + au的大小,单位KB,范围为2MB-64MB。 + +- vg_name + + 卷组名。 + +- measure_type + + 显示文件大小的单位。例如,B:Byte, K:KB, M:MB, G:GB, T:TB。 + + 默认为Byte。 + +- path + + 表示目录或带路径的文件,需要带'+'且不支持使用相对路径,命名长度不能超过1K,仅支持数字,大小写字母,和部分特殊字符 ' _ ' , ' . ' , ' - ' ,'\',其中'\'是分隔符。其他字符不支持。文件名本身长度不能超过63位,仅支持数字,大小写字母,和部分特殊字符 '_ ' , ' . ' , ' - ', 其他字符不支持。 + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** dsscmd命令使用UDS:socket_domain的时候,需要与服务端通信,由于客户端和服务端通信的报文最长为1024,所以实际path支持的长度可能会少于1K。 + +- dir_name + + 目录名,命名长度不能超过64,仅支持数字,大小写字母,和部分特殊字符 ' _ ' , ' . ' , ' - ' 。其他字符不支持。 + +- vol_name + + 卷名。文件命名长度不能超过1K(包括目录),仅支持数字,大小写字母,和部分特殊字符 ' _ ' , ' . ' , ' - ' ,'\',其中'\'是分隔符。其他字符不支持。 + +- -D + + $DSS_HOME所在路径。 + +- -U UDS:socket_domain + + dss实例进程使用的socket文件路径。 + +- inst_id |kicked_inst_id + + 集群中dss实例id。 + +- addr + + volume上锁的起始地址。 + +- read_size + + 读取长度。 + +- name: + + 配置项名称。 + +- value + + 配置项的值。 + +- scope + + 配置项生效的范围。 + + 取值范围:memory、pfile或both。 + + - memory:表示在内存中进行修改,立即生效。 + - pfile:表示在pfile中进行修改,修改后需要重启数据库才能生效。 + - both:表示既在内存也在pfile中进行修改。 + +## 使用示例 + +- 创建卷组,卷组名为data和log,au大小分别为2048和65536,-D指定dss_home。 + + ``` + dsscmd cv -g data -v /dev/tpcc_data -s 2048 -D /home/ss_test/dss_home + dsscmd cv -g log -v /dev/tpcc_log -s 65536 -D /home/ss_test/dss_home + ``` + +- 创建文件夹pg_xlog0 ,UDS指定dss进程的socket文件。 + + ``` + dsscmd mkdir -p +log -d pg_xlog0 -U UDS:/home/ss_test/dss_home/.dss_unix_d_socket + ``` + +- 文件复制,将data中的文件复制到log中。 + + ``` + dsscmd cp -s +data/pg_xlog0/000000010000000000000001 -d +log/pg_xlog0/000000010000000000000001 -U UDS:/home/ss_test/dss_home/.dss_unix_d_socket + ``` + +- 文件删除,删除data中文件。 + + ``` + dsscmd rm -p +data/pg_xlog0/000000010000000000000001 -U UDS:/home/ss_test/dss_home/.dss_unix_d_socket + ``` + +- 删除data中文件夹pg_xlog0/archive_status(文件夹为空,若文件夹内有文件需要级联删除,需要加-r)。 + + ``` + dsscmd rmdir -p +data/pg_xlog0/archive_status -U UDS:/home/ss_test/dss_home/.dss_unix_d_socket + ``` + +- 创建软链接。 + + ``` + dsscmd ln -s +log/pg_xlog0 -t +data/pg_xlog0 -U UDS:/home/ss_test/dss_home/.dss_unix_d_socket + ``` + +- 查看data中pg_xlog0目录下的文件信息。 + + ``` + dsscmd ls -p +data/pg_xlog0 -U UDS:/home/ss_test/dss_home/.dss_unix_d_socket + ``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/dssserver.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/dssserver.md new file mode 100644 index 0000000000000000000000000000000000000000..fc92710a9245d411d52e6a29f4038ca600af90c4 --- /dev/null +++ b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/dssserver.md @@ -0,0 +1,296 @@ +--- +title: dssserver +summary: dssserver +author: zhang cuiping +date: 2023-04-07 +--- + +# dssserver + +## 背景信息 + +dssserver是独立进程,直接管理磁阵裸设备,并对外提供类似分布式文件系统的能力。通过共享内存和客户端API动态库,为数据库提供创建文件、删除文件、扩展和收缩文件、读写文件的能力。也是一个可执行的命令,能够通过其启动一个dssserver进程。 + +## 语法 + +启动dssserver进程 + +``` +dssserver -D $DSS_HOME +``` + +## 参数说明 + +dssserver作为一个独立的进程,在启动之前需要提供配置文件dss_inst.ini,相关的配置参数整理如下: + +- LSNR_PATH + + **参数说明:**dssserver进程需要的socket文件路径。 + + **取值范围:**字符串。 + + **默认值:**$DSS_HOME + +- LOG_HOME + + **参数说明:**日志路径。 + + **取值范围:**字符串类型。 + + **默认值:**"" + +- _LOG_BACKUP_FILE_COUNT + + **参数说明:**日志文件最多保留的个数。 + + **取值范围:**整型,0~1024。 + + **默认值:**10 + +- _LOG_MAX_FILE_SIZE + + **参数说明:**单个日志文件最大大小。 + + **取值范围:**整型 , [1M,4G]。 + + **默认值:**10M + +- INST_ID + + **参数说明:**实例号,每个主备下的dssserver进程各不相同。 + + **取值范围:**整型,0~63。 + + **默认值:**0 + +- STORAGE_MODE + + **参数说明:**DSS对应的存储设备类型,磁阵的话配置为RAID或者CLUSTER_RAID。 + + **取值范围:**字符串。 + + **默认值:**DISK + +- _LOG_LEVEL + + **参数说明**:日志级别。 + + **取值范围:**整型,0~4087。 + + **默认值:7** + +- MAX_SESSION_NUMS + + **参数说明:**最大的会话连接数量。 + + **取值范围:**整型,[16,16320]。 + + **默认值:**8192 + +- DISK_LOCK_INTERVAL + + **参数说明:**磁盘锁加锁超时时间。 + + **取值范围:**整型,1~600000, 单位:毫秒。 + + **默认值:**100 + +- DLOCK_RETRY_COUNT + + **参数说明:**磁盘加锁重试次数。 + + **取值范围:**整型,1~500000。 + + **默认值:**50 + +- _AUDIT_BACKUP_FILE_COUNT + + **参数说明:**审计备份文件个数。 + + **取值范围:**整型,0~1024。 + + **默认值:**10 + +- _AUDIT_MAX_FILE_SIZE + + **参数说明:**审计备份文件最大大小。 + + **取值范围:**整型,1M~4G。 + + **默认值:**10M + +- _LOG_FILE_PERMISSIONS + + **参数说明:**日志文件权限。 + + **取值范围:**整型,600~777。 + + **默认值:**600 + +- _LOG_PATH_PERMISSIONS + + **参数说明:**日志路径权限。 + + **取值范围:**整型,700~777。 + + **默认值:**700 + +- _SHM_KEY + + **参数说明:**共享内存KEY。 + + **取值范围:**整型,1~64。 + + **默认值:**1 + +- DSS_NODES_LIST + + **参数说明:**dssserver节点之间mes通信url。 + + **取值范围:**字符串。格式为 inst_Id:ip:port,inst_Id:ip:port………. + + **默认值:**0:127.0.0.1:1611 + +- INTERCONNECT_TYPE + + **参数说明:**通信协议类型。 + + **取值范围:**字符串,TCP/RDMA。 + + **默认值:**TCP + +- INTERCONNECT_CHANNEL_NUM + + **参数说明:**内部通信mes链接通道个数。 + + **取值范围:**整型,1~32。 + + **默认值:**2 + +- WORK_THREAD_COUNT + + **参数说明:**内部通信mes工作线程数量。 + + **取值范围:**整型,2~64。 + + **默认值:**2 + +- RECV_MSG_POOL_SIZE + + **参数说明:**消息接收内存池大小。 + + **取值范围:**整型,1M~1G。 + + **默认值:**16M + +- MES_ELAPSED_SWITCH + + **参数说明:**内部通信mes统计计数时延开关。 + + **取范围:**布尔型,FALSE/TRUE。TRUE表示当前开启mes通信计数统计时延,FALSE表示不开启。 + + **默认值:**FALSE + +- DISK_LOCK_FILE_PATH + + **参数说明**:STORAGE_MODE为DISK时,所用锁的文件保存路径。 + + **取值范围:**字符串。 + + **默认值:**$DSS_HOME + +- SSL_CA + + **参数说明:**CA服务器的根证书。 + + **取值范围:**字符串。 + + **默认值:""** + +- SSL_KEY + + **参数说明:**指定服务器私钥文件,用以对公钥加密的数据进行解密。 + + **取值范围:**字符串。 + + **默认值:""** + +- SSL_CRL + + **参数说明:**证书吊销列表。 + + **取值范围:**字符串。 + + **默认值:""** + +- SSL_CERT + + **参数说明:**指定服务器证书文件,包含服务器端的公钥。 + + **取值范围:**字符串。 + + **默认值:""** + +- SSL_CIPHER + + **参数说明:\**SSL通讯使用的加密算法\**。** + + **取值范围:**字符串。 + + **默认值:""** + +- SSL_PWD_CIPHERTEXT + + **参数说明:\**私钥密码\**。** + + **取值范围:**字符串。 + + **默认值:""** + +- SSL_CERT_NOTIFY_TIME + + **参数说明:**SSL服务器证书到期前提醒的天数。 + + **取值范围:**整型,7~180。 + + **默认值:**30 + +- POOL_NAMES + + **参数说明:**存储池配置。 + + **取值范围:**字符串。 + + **默认值:""** + +- IMAGE_NAMES + + **参数说明:**image配置。 + + **取值范围:**字符串。 + + **默认值:**空 + +- CEPH_CONFIG + + **参数说明:**ceph集群配置文件。 + + **取值范围:**字符串。 + + **默认值:**“/etc/ceph/ceph.conf” + +- VOLUME_TYPES + + **参数说明:**卷类型。 + + **取值范围:**字符串。 + + **默认值:""** + +- DSS_CM_SO_NAME + + **参数说明:**cm的二进制文件名。 + + **取值范围:**字符串。 + + **默认值:""** \ No newline at end of file diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/2-gs_backup.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_backup.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/2-gs_backup.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_backup.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/3-gs_basebackup.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_basebackup.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/3-gs_basebackup.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_basebackup.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/4-gs_ctl.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_ctl.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/4-gs_ctl.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_ctl.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/14-gs_dropnode.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_dropnode.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/14-gs_dropnode.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_dropnode.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/13-gs_expansion.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_expansion.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/13-gs_expansion.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_expansion.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/5-gs_initdb.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_initdb.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/5-gs_initdb.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_initdb.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/6-gs_install.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_install.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/6-gs_install.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_install.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/7-gs_postuninstall.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_postuninstall.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/7-gs_postuninstall.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_postuninstall.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/8-gs_preinstall.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_preinstall.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/8-gs_preinstall.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_preinstall.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/15-gs_probackup.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_probackup.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/15-gs_probackup.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_probackup.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/9-gs_sshexkey.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_sshexkey.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/9-gs_sshexkey.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_sshexkey.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/10-gs_tar.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_tar.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/10-gs_tar.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_tar.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/11-gs_uninstall.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_uninstall.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/11-gs_uninstall.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_uninstall.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/12-gs_upgradectl.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_upgradectl.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/12-gs_upgradectl.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_upgradectl.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/gstrace.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/18-kadmin-local.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kadmin-local.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/18-kadmin-local.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kadmin-local.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/17-kdb5_util.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kdb5_util.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/17-kdb5_util.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kdb5_util.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/22-kdestroy.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kdestroy.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/22-kdestroy.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kdestroy.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/19-kinit.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kinit.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/19-kinit.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/kinit.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/20-klist.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/klist.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/20-klist.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/klist.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/21-krb5kdc.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/krb5kdc.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/21-krb5kdc.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/krb5kdc.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/1-mogdb.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/mogdb.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/1-mogdb.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/mogdb.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/26-pg_archivecleanup.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_archivecleanup.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/26-pg_archivecleanup.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_archivecleanup.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/23-pg_config.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_config.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/23-pg_config.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_config.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/24-pg_controldata.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_controldata.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/24-pg_controldata.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_controldata.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/24.1-pg_recvlogical.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_recvlogical.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/24.1-pg_recvlogical.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_recvlogical.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/25-pg_resetxlog.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_resetxlog.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/25-pg_resetxlog.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pg_resetxlog.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/28-pscp.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/28-pscp.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pscp.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/27-pssh.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/27-pssh.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/pssh.md diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/29-transfer.py.md b/product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md similarity index 100% rename from product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/29-transfer.py.md rename to product/zh/docs-mogdb/v5.0/reference-guide/tool-reference/tools-used-in-the-internal-system/transfer.py.md