Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update enable-ttl description #8043

Merged
merged 6 commits into from
Mar 7, 2022
Merged
Changes from 5 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
7 changes: 6 additions & 1 deletion tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,14 @@ TiKV 配置文件比命令行参数支持更多的选项。你可以在 [etc/con
### `enable-ttl`

+ TTL 即 Time to live。数据超过 TTL 时间后会被自动删除。用户需在客户端写入请求中指定 TTL。不指定 TTL 即表明相应数据不会被自动删除。
+ 注意:TTL 暂时只适用于 RawKV 接口。由于所涉及底层数据格式的不同,用户只能在新建集群时设置好该功能,在已有集群上修改该项配置会使得启动报错。
+ 默认值:false

> **警告:**
>
> TTL 暂时只适用于 RawKV 接口。由于所涉及底层数据格式不同,你只能在新建集群时设置该功能。
> **禁止**在已有集群上修改该项配置,否则会导致启动报错。
> **禁止**在有 TiDB 节点的集群中使用该参数,以免导致数据写坏等严重后果。

7yyo marked this conversation as resolved.
Show resolved Hide resolved
### `ttl-check-poll-interval`

+ 回收数据物理空间的检查周期。如果数据超过了 TTL 时间,数据的物理空间会在检查时被强制回收。
Expand Down