From e960337900e57f08c14200638f29e6cc13a46ded Mon Sep 17 00:00:00 2001 From: deanglc <29059624+deanglc@users.noreply.github.com> Date: Thu, 22 Apr 2021 11:11:54 +0800 Subject: [PATCH] cherry pick #5401 to release-4.0 Signed-off-by: ti-srebot --- tikv-configuration-file.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index d2e1621079978..0f9da71304957 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -271,6 +271,21 @@ Configuration items related to storage + Default value: `"2GB"` + Unite: MB|GB +<<<<<<< HEAD +======= +### `enable-ttl` New in v5.0 GA + ++ TTL is short for "Time to live". If this item is enabled, TiKV automatically deletes data that reaches its TTL. To set the value of TTL, you need to specify it in the requests when writing data via the client. If the TTL is not specified, it means that TiKV does not automatically delete the corresponding data. ++ Note: The TTL feature is only available for the RawKV interface for now. You can only configure this feature when creating a new cluster because TTL uses different data formats in the storage layer. If you modify this item on an existing cluster, TiKV reports errors when it starts. ++ Default value: `false` + +### `ttl-check-poll-interval` New in v5.0 GA + ++ The interval of checking data to reclaim physical spaces. If data reaches its TTL, TiKV forcibly reclaims its physical space during the check. ++ Default value: `"12h"` ++ Minimum value: `"0s"` + +>>>>>>> c940d05d... correct a tikv config name (#5401) ## storage.block-cache Configuration items related to the sharing of block cache among multiple RocksDB Column Families (CF). When these configuration items are enabled, block cache separately configured for each column family is disabled.