diff --git a/docs/en/14-reference/12-config/index.md b/docs/en/14-reference/12-config/index.md index c3d5de02137b61796cb9361721bf51fa6ac9dfb2..5febda4dafc191b48446bfff0e36a77aaa9f13e5 100644 --- a/docs/en/14-reference/12-config/index.md +++ b/docs/en/14-reference/12-config/index.md @@ -142,15 +142,6 @@ The parameters described in this document by the effect that they have on the sy | Meaning | Switch for allowing TDengine to collect and report service usage information | | Value Range | 0: Not allowed; 1: Allowed | | Default Value | 1 | -### crashReporting - -| Attribute | Description | -| -------- | -------------------------------------------- | -| Applicable | Server Only | -| Meaning |Switch for allowing TDengine to collect and report crash related information | -| Value Range | 0,1 0: Not allowed;1:allowed | -| Default Value | 1 | - ## Query Parameters @@ -324,6 +315,39 @@ The charset that takes effect is UTF-8. | Meaning | All data files are stored in this directory | | Default Value | /var/lib/taos | +:::info +`The official version` supports multi-tier storage (need to cooperate with [KEEP parameter](https://docs.tdengine.com/taos-sql/database/#create-a-database)). The configuration method is as follows. + +The multi-tier storage directory is configured through `dataDir`, the format is: +`dataDir [path] ` + +dataDir: Configuration items in the configuration file (`taos.cfg`) +path: the directory to mount (cannot be omitted) +level: mount level, the value is 0, 1 or 2, if omitted, the default is 0. Up to 3 levels are supported, and each level supports up to 16 mount points, so a maximum of 48 mount points are supported. +primary: whether it is the primary mount point, 0 (no) or 1 (yes), the default is 1. The primary mount point is only allowed at level 0, and only one primary mount point is allowed (level=0, primary=1). + +Here is a normal configuration (3 storage tiers, each with 3 mount points): +``` +dataDir /mnt/data01 0 1 +dataDir /mnt/data02 0 0 +dataDir /mnt/data03 0 0 +dataDir /mnt/data10 1 0 +dataDir /mnt/data11 1 0 +dataDir /mnt/data12 1 0 +dataDir /mnt/data20 2 0 +dataDir /mnt/data21 2 0 +dataDir /mnt/data22 2 0 +``` + +`The community version` does not support multi-tier storage, and the following three configurations are acceptable: +``` +dataDir /var/lib/taos +or dataDir /var/lib/taos 0 +or dataDir /var/lib/taos 0 1 +``` + +::: + ### tempDir | Attribute | Description | diff --git a/docs/zh/14-reference/12-config/index.md b/docs/zh/14-reference/12-config/index.md index 8197a664cac05e389e54b6661ba97f324783a9e1..ae1c9283048df73d2fc77794130e1129862993ee 100644 --- a/docs/zh/14-reference/12-config/index.md +++ b/docs/zh/14-reference/12-config/index.md @@ -306,17 +306,18 @@ charset 的有效值是 UTF-8。 | 含义 | 数据文件目录,所有的数据文件都将写入该目录 | | 缺省值 | /var/lib/taos | +:::info +`企业版`支持多级存储 (需要与[KEEP 参数](https://docs.taosdata.com/taos-sql/database/#%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93)配合使用). 配置方法如下。 -企业版支持多级存储 (需要与[KEEP 参数](https://docs.taosdata.com/taos-sql/database/#%E5%88%9B%E5%BB%BA%E6%95%B0%E6%8D%AE%E5%BA%93)配合使用). 配置方法如下。 - -多级存储目录通过 dataDir 配置。配置项格式: dataDir [path] +多级存储目录通过 `dataDir` 配置。配置项格式: dataDir [path] -dataDir: 配置文件(taos.cfg)中的配置项 +dataDir: 配置文件(`taos.cfg`)中的配置项 path: 需要挂载的目录(不可省略) level: 挂载等级,取值为 0,1 或 2,省略默认为 0。最多支持 3 级, 每一级最多支持 16 个挂载点, 因此, 最多支持 48 个挂载点。 primary: 是否为主挂载点,0(否)或 1(是),默认为 1。主挂载点只允许在 level 0,且只允许一个主挂载点存在(level = 0,primary = 1)。 -如下,为正常的配置 ( 3 个存储层级,每个层级 3 个挂载点): +如下,为正常配置 ( 3 个存储层级,每个层级 3 个挂载点): +``` dataDir /mnt/data01 0 1 dataDir /mnt/data02 0 0 dataDir /mnt/data03 0 0 @@ -326,11 +327,14 @@ dataDir /mnt/data12 1 0 dataDir /mnt/data20 2 0 dataDir /mnt/data21 2 0 dataDir /mnt/data22 2 0 +``` -社区版不支持多级存储, 以下 3 种均为正常配置: +`社区版`不支持多级存储, 以下 3 种均为正常配置: +``` dataDir /var/lib/taos 或 dataDir /var/lib/taos 0 或 dataDir /var/lib/taos 0 1 +``` :::