Update index.md

This commit is contained in:
Cary Xu 2023-01-13 14:44:57 +08:00 committed by GitHub
parent d5b904e446
commit 91e11faf8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 33 deletions

View File

@ -315,39 +315,6 @@ 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] <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):
```
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 all normal:
```
dataDir /var/lib/taos
or dataDir /var/lib/taos 0
or dataDir /var/lib/taos 0 1
```
:::
### tempDir
| Attribute | Description |