Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: GC keeps SST/index files until all references are released, protect
---
# Garbage Collection (GC)

GreptimeDB GC delays physical deletion of SST/index files until all references (running queries, [repartition](./table-sharding.md#Repartition) cross-region file refs) are released. The configuration contains two parts:
GreptimeDB GC delays physical deletion of SST/index files until all references (running queries, [repartition](./repartition.md) cross-region file refs) are released. The configuration contains two parts:

- Metasrv Configuration
- Datanode Configuration
Expand Down Expand Up @@ -52,7 +52,7 @@ unknown_file_lingering_time = "1h" # Keep files without expel time; rare safegua
| Configuration Option | Description |
| --- | --- |
| `enable` | Enable the datanode GC worker. Must match meta GC `enable`. |
| `lingering_time` | How long to keep manifest-removed files before deletion to protect long follower-region queries/cross-region references; set longer than `gc_cooldown_period`. Use `"None"` to delete immediately. |
| `lingering_time` | How long to keep manifest-removed files before deletion to protect long follower-region queries/cross-region references; set longer than `gc_cooldown_period`. Use `"0s"` to delete immediately. |
| `unknown_file_lingering_time` | Safety hold for files without expel time (not tracked in manifest). Should be generous; these cases are rare. |

:::warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: GC 会在所有引用释放后才删除 SST/索引文件,以保
---
# 垃圾回收(GC)

GreptimeDB GC 会延迟删除 SST/索引文件,直到所有引用(运行中的查询、[repartition](./table-sharding.md#Repartition) 的跨 region 文件引用)释放。配置包含两部分:
GreptimeDB GC 会延迟删除 SST/索引文件,直到所有引用(运行中的查询、[repartition](./repartition.md) 的跨 region 文件引用)释放。配置包含两部分:

- Metasrv 配置
- Datanode 配置
Expand Down Expand Up @@ -52,7 +52,7 @@ unknown_file_lingering_time = "1h" # 未记录 expel time 的文件保留时长
| 配置项 | 说明 |
| --- | --- |
| `enable` | 启用 datanode GC worker,必须与 meta GC 的 `enable` 一致。 |
| `lingering_time` | manifest 中已移除文件在删除前的保留时长,用于保护长时间 follower-region 查询/跨 region 引用;请设置为大于 `gc_cooldown_period`。设为 `"None"` 表示立即删除。 |
| `lingering_time` | manifest 中已移除文件在删除前的保留时长,用于保护长时间 follower-region 查询/跨 region 引用;请设置为大于 `gc_cooldown_period`。设为 `"0s"` 表示立即删除。 |
| `unknown_file_lingering_time` | 对缺少 expel time 的文件的安全保留时间(未在 manifest 中追踪)。建议设置为较长值;此类情况较少。 |

:::warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: GC 会在所有引用释放后才删除 SST/索引文件,以保
---
# 垃圾回收(GC)

GreptimeDB GC 会延迟删除 SST/索引文件,直到所有引用(运行中的查询、[repartition](./table-sharding.md#Repartition) 的跨 region 文件引用)释放。配置包含两部分:
GreptimeDB GC 会延迟删除 SST/索引文件,直到所有引用(运行中的查询、[repartition](./repartition.md) 的跨 region 文件引用)释放。配置包含两部分:

- Metasrv 配置
- Datanode 配置
Expand Down Expand Up @@ -52,7 +52,7 @@ unknown_file_lingering_time = "1h" # 未记录 expel time 的文件保留时长
| 配置项 | 说明 |
| --- | --- |
| `enable` | 启用 datanode GC worker,必须与 meta GC 的 `enable` 一致。 |
| `lingering_time` | manifest 中已移除文件在删除前的保留时长,用于保护长时间 follower-region 查询/跨 region 引用;请设置为大于 `gc_cooldown_period`。设为 `"None"` 表示立即删除。 |
| `lingering_time` | manifest 中已移除文件在删除前的保留时长,用于保护长时间 follower-region 查询/跨 region 引用;请设置为大于 `gc_cooldown_period`。设为 `"0s"` 表示立即删除。 |
| `unknown_file_lingering_time` | 对缺少 expel time 的文件的安全保留时间(未在 manifest 中追踪)。建议设置为较长值;此类情况较少。 |

:::warning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: GC keeps SST/index files until all references are released, protect
---
# Garbage Collection (GC)

GreptimeDB GC delays physical deletion of SST/index files until all references (running queries, [repartition](./table-sharding.md#Repartition) cross-region file refs) are released. The configuration contains two parts:
GreptimeDB GC delays physical deletion of SST/index files until all references (running queries, [repartition](./repartition.md) cross-region file refs) are released. The configuration contains two parts:

- Metasrv Configuration
- Datanode Configuration
Expand Down Expand Up @@ -52,7 +52,7 @@ unknown_file_lingering_time = "1h" # Keep files without expel time; rare safegua
| Configuration Option | Description |
| --- | --- |
| `enable` | Enable the datanode GC worker. Must match meta GC `enable`. |
| `lingering_time` | How long to keep manifest-removed files before deletion to protect long follower-region queries/cross-region references; set longer than `gc_cooldown_period`. Use `"None"` to delete immediately. |
| `lingering_time` | How long to keep manifest-removed files before deletion to protect long follower-region queries/cross-region references; set longer than `gc_cooldown_period`. Use `"0s"` to delete immediately. |
| `unknown_file_lingering_time` | Safety hold for files without expel time (not tracked in manifest). Should be generous; these cases are rare. |

:::warning
Expand Down
Loading