From d8122616236722be2d68b60729939137237859b4 Mon Sep 17 00:00:00 2001 From: hongyunyan <649330952@qq.com> Date: Thu, 12 Oct 2023 16:09:27 +0800 Subject: [PATCH] Update the param size for mark cache and minmax index cache for TiFlash (#14856) --- releases/release-7.0.0.md | 2 ++ tiflash/tiflash-configuration.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/releases/release-7.0.0.md b/releases/release-7.0.0.md index 37f5d91f399f6..a420208f94541 100644 --- a/releases/release-7.0.0.md +++ b/releases/release-7.0.0.md @@ -362,6 +362,8 @@ In v7.0.0-DMR, the key new features and improvements are as follows: | PD | [`read-cpu-ms-cost`](/pd-configuration-file.md#read-cpu-ms-cost) | Newly added | A [Resource Control](/tidb-resource-control.md)-related configuration item. It controls the basis factor for conversion from CPU to RU. The default value is `1/3`. | | PD | [`write-base-cost`](/pd-configuration-file.md#write-base-cost) | Newly added | A [Resource Control](/tidb-resource-control.md)-related configuration item. It controls the basis factor for conversion from a write request to RU. The default value is `1`. | | PD | [`write-cost-per-byte`](/pd-configuration-file.md#write-cost-per-byte) | Newly added | A [Resource Control](/tidb-resource-control.md)-related configuration item. It controls the basis factor for conversion from write flow to RU. The default value is `1/1024`. | +| TiFlash | [`mark_cache_size`](/tiflash/tiflash-configuration.md) | Modified | Change the default cache limit of the metadata for a data block in TiFlash from `5368709120` to `1073741824` to reduce unnecessary memory usage. | +| TiFlash | [`minmax_index_cache_size`](/tiflash/tiflash-configuration.md) | Modified | Change the default cache limit of the min-max index for a data block in TiFlash from `5368709120` to `1073741824` to reduce unnecessary memory usage. | | TiFlash | [`flash.disaggregated_mode`](/tiflash/tiflash-disaggregated-and-s3.md) | Newly added | In the disaggregated architecture of TiFlash, it indicates whether this TiFlash node is a write node or a compute node. The value can be `tiflash_write` or `tiflash_compute`. | | TiFlash | [`storage.s3.endpoint`](/tiflash/tiflash-disaggregated-and-s3.md) | Newly added | The endpoint to connect to S3. | | TiFlash | [`storage.s3.bucket`](/tiflash/tiflash-disaggregated-and-s3.md) | Newly added | The bucket where TiFlash stores all data. | diff --git a/tiflash/tiflash-configuration.md b/tiflash/tiflash-configuration.md index 6bd42380f0a81..e7c63922e7107 100644 --- a/tiflash/tiflash-configuration.md +++ b/tiflash/tiflash-configuration.md @@ -47,9 +47,9 @@ listen_host = "0.0.0.0" ## It is **NOT** recommended to configure this port in any TiFlash deployment. (Note: Starting from TiFlash v7.1.0, TiFlash deployed by TiUP >= v1.12.5 or TiDB Operator >= v1.5.0 disables the port by default and is more secure.) # tcp_port = 9000 ## The cache size limit of the metadata of a data block. Generally, you do not need to change this value. -mark_cache_size = 5368709120 +mark_cache_size = 1073741824 ## The cache size limit of the min-max index of a data block. Generally, you do not need to change this value. -minmax_index_cache_size = 5368709120 +minmax_index_cache_size = 1073741824 ## The cache size limit of the DeltaIndex. The default value is 0, which means no limit. delta_index_cache_size = 0