chore: docs update for dataDir

This commit is contained in:
kailixu 2023-01-10 17:53:18 +08:00
parent 90fd949606
commit 3915fa6c29
2 changed files with 10 additions and 32 deletions

View File

@ -142,6 +142,15 @@ 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 | | Meaning | Switch for allowing TDengine to collect and report service usage information |
| Value Range | 0: Not allowed; 1: Allowed | | Value Range | 0: Not allowed; 1: Allowed |
| Default Value | 1 | | 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 allowed1allowed |
| Default Value | 1 |
## Query Parameters ## Query Parameters
@ -315,37 +324,6 @@ The charset that takes effect is UTF-8.
| Meaning | All data files are stored in this directory | | Meaning | All data files are stored in this directory |
| Default Value | /var/lib/taos | | 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] <level> <primary>`
```
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):
```
Data directory /mnt/data01 0 1
Data directory /mnt/data02 0 0
Data directory /mnt/data03 0 0
Data directory /mnt/data10 1 0
Data directory /mnt/data11 1 0
Data directory /mnt/data12 1 0
Data directory /mnt/data20 2 0
Data directory /mnt/data21 2 0
Data directory /mnt/data22 2 0
```
The community version does not support multi-tier storage, and the following three configurations are acceptable:
```
Data directory /var/lib/taos
or dataDir /var/lib/taos 0
or dataDir /var/lib/taos 0 1
```
:::
### tempDir ### tempDir
| Attribute | Description | | Attribute | Description |

View File

@ -306,7 +306,7 @@ charset 的有效值是 UTF-8。
| 含义 | 数据文件目录,所有的数据文件都将写入该目录 | | 含义 | 数据文件目录,所有的数据文件都将写入该目录 |
| 缺省值 | /var/lib/taos | | 缺省值 | /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] <level> <primary> 多级存储目录通过 dataDir 配置。配置项格式: dataDir [path] <level> <primary>