提交 0cdd7ca6 编写于 作者: M Mikhail f. Shiryaev

Add user setting mark_cache_min_lifetime documentation

上级 c7cd9113
......@@ -366,12 +366,15 @@ For more information, see the section "[Creating replicated tables](../../operat
```
## mark_cache_size
## mark_cache_size {#server-mark-cache-size}
Approximate size (in bytes) of the cache of "marks" used by [MergeTree](../../operations/table_engines/mergetree.md).
The cache is shared for the server and memory is allocated as needed. The cache size must be at least 5368709120.
!!! note IMPORTANT
This parameter could be exceeded by user's setting [mark_cache_min_lifetime](../settings/settings.md#settings-mark_cache_min_lifetime).
**Example**
```xml
......
......@@ -570,6 +570,12 @@ We are writing a URL column with the String type (average size of 60 bytes per v
There usually isn't any reason to change this setting.
## mark_cache_min_lifetime {#settings-mark_cache_min_lifetime}
If the value of [mark_cache_size](../server_settings/settings.md#server-mark-cache-size) setting is exceeded, delete only records older than mark_cache_min_lifetime seconds. If your hosts have low amount of RAM, it makes sense to lower this parameter.
Default value: 10000 seconds.
## max_query_size {#settings-max_query_size}
The maximum part of a query that can be taken to RAM for parsing with the SQL parser.
......
......@@ -366,12 +366,15 @@ ClickHouse проверит условия `min_part_size` и `min_part_size_rat
```
## mark_cache_size
## mark_cache_size {#server-mark-cache-size}
Приблизительный размер (в байтах) кеша "засечек", используемых движками таблиц семейства [MergeTree](../../operations/table_engines/mergetree.md).
Кеш общий для сервера, память выделяется по мере необходимости. Кеш не может быть меньше, чем 5368709120.
!!! note ВАЖНО
Этот параметр может быть превышен при большом значении настройки пользователя [mark_cache_min_lifetime](../settings/settings.md#settings-mark_cache_min_lifetime).
**Пример**
```xml
......
......@@ -511,6 +511,12 @@ ClickHouse использует этот параметр при чтении д
Как правило, не имеет смысла менять эту настройку.
## mark_cache_min_lifetime {#settings-mark_cache_min_lifetime}
Если превышено значение параметра [mark_cache_size](../server_settings/settings.md#server-mark-cache-size), то будут удалены только записи старше чем значение этого параметра. Имеет смысл понижать данный параметр при малом количестве RAM на хост-системах.
Default value: 10000 seconds.
## max_query_size {#settings-max_query_size}
Максимальный кусок запроса, который будет считан в оперативку для разбора парсером языка SQL.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册