Skip to content

Commit

Permalink
fix: storage location doc
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Jan 9, 2025
1 parent eedead5 commit 9a2457f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/user-guide/concepts/storage-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The storage file structure of GreptimeDB includes of the following:
├── data
│   ├── greptime
│   └── public
├── cache
├── logs
├── index_intermediate
│   └── staging
Expand All @@ -30,6 +31,7 @@ The storage file structure of GreptimeDB includes of the following:

- `metadata`: The internal metadata directory that keeps catalog, database and table info, procedure states, etc. In cluster mode, this directory does not exist, because all those states including region route info are saved in `Metasrv`.
- `data`: The files in data directory store time series data and index files of GreptimeDB. To customize this path, please refer to [Storage option](../deployments/configuration.md#storage-options). The directory is organized in a two-level structure of catalog and schema.
- `cache`: The directory for internal caching, such as object storage cache, etc.
- `logs`: The log files contains all the logs of operations in GreptimeDB.
- `wal`: The wal directory contains the write-ahead log files.
- `index_intermediate`: the temporary intermediate data while indexing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ GreptimeDB 的存储文件结构包括以下内容:
├── data
│   ├── greptime
│   └── public
├── cache
├── logs
├── index_intermediate
│   └── staging
Expand All @@ -30,13 +31,14 @@ GreptimeDB 的存储文件结构包括以下内容:

- `metadata`: 内部元数据目录,保存 catatalog、数据库以及表的元信息、procedure 状态等内部状态。在集群模式下,此目录不存在,因为所有这些状态(包括区域路由信息)都保存在 `Metasrv` 中。
- `data`: 存储 GreptimeDB 的实际的时间序列数据和索引文件。如果要自定义此路径,请参阅 [存储选项](../deployments/configuration.md#storage-options)。该目录按照 catalog 和 schema 的两级结构组织。
- `cache`: 内部的数据缓存目录,比如对象存储的本地缓存等。
- `logs`: GreptimeDB 日志文件目录。
- `wal`: 预写日志文件目录。
- `index_intermediate`: 索引构建和查询相关的的临时中间数据目录。

## 云存储

文件结构中的 `cluster``data` 目录可以存储在云存储中。请参考[存储选项](../deployments/configuration.md#存储选项)了解更多细节。
文件结构中的 `data` 目录可以存储在云存储中。请参考[存储选项](../deployments/configuration.md#存储选项)了解更多细节。

请注意,仅将 `data` 目录存储在对象存储中不足以确保数据可靠性和灾难恢复,`wal``metadata` 也需要考虑灾难恢复,更详细地请参阅[灾难恢复文档](/user-guide/administration/disaster-recovery/overview.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ GreptimeDB 的存储文件结构包括以下内容:
├── data
│   ├── greptime
│   └── public
├── cache
├── logs
├── index_intermediate
│   └── staging
Expand All @@ -30,13 +31,14 @@ GreptimeDB 的存储文件结构包括以下内容:

- `metadata`: 内部元数据目录,保存 catatalog、数据库以及表的元信息、procedure 状态等内部状态。在集群模式下,此目录不存在,因为所有这些状态(包括区域路由信息)都保存在 `Metasrv` 中。
- `data`: 存储 GreptimeDB 的实际的时间序列数据和索引文件。如果要自定义此路径,请参阅 [存储选项](../deployments/configuration.md#storage-options)。该目录按照 catalog 和 schema 的两级结构组织。
- `cache`: 内部的数据缓存目录,比如对象存储的本地缓存等。
- `logs`: GreptimeDB 日志文件目录。
- `wal`: 预写日志文件目录。
- `index_intermediate`: 索引构建和查询相关的的临时中间数据目录。

## 云存储

文件结构中的 `cluster``data` 目录可以存储在云存储中。请参考[存储选项](../deployments/configuration.md#存储选项)了解更多细节。
文件结构中的 `data` 目录可以存储在云存储中。请参考[存储选项](../deployments/configuration.md#存储选项)了解更多细节。

请注意,仅将 `data` 目录存储在对象存储中不足以确保数据可靠性和灾难恢复,`wal``metadata` 也需要考虑灾难恢复,更详细地请参阅[灾难恢复文档](/user-guide/administration/disaster-recovery/overview.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The storage file structure of GreptimeDB includes of the following:
├── data
│   ├── greptime
│   └── public
├── cache
├── logs
├── index_intermediate
│   └── staging
Expand All @@ -30,6 +31,7 @@ The storage file structure of GreptimeDB includes of the following:

- `metadata`: The internal metadata directory that keeps catalog, database and table info, procedure states, etc. In cluster mode, this directory does not exist, because all those states including region route info are saved in `Metasrv`.
- `data`: The files in data directory store time series data and index files of GreptimeDB. To customize this path, please refer to [Storage option](../deployments/configuration.md#storage-options). The directory is organized in a two-level structure of catalog and schema.
- `cache`: The directory for internal caching, such as object storage cache, etc.
- `logs`: The log files contains all the logs of operations in GreptimeDB.
- `wal`: The wal directory contains the write-ahead log files.
- `index_intermediate`: the temporary intermediate data while indexing.
Expand Down

0 comments on commit 9a2457f

Please sign in to comment.