mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
comment out more default settings
This commit is contained in:
parent
a902d37615
commit
a6a3991f39
@ -408,13 +408,11 @@
|
||||
|
||||
<!-- Approximate size of mark cache, used in tables of MergeTree family.
|
||||
In bytes. Cache is single for server. Memory is allocated only on demand.
|
||||
You should not lower this value.
|
||||
<mark_cache_size>5368709120</mark_cache_size>
|
||||
-->
|
||||
You should not lower this value. -->
|
||||
<!-- <mark_cache_size>5368709120</mark_cache_size> -->
|
||||
|
||||
<!-- For marks of secondary indices.
|
||||
<index_mark_cache_size>5368709120</index_mark_cache_size>
|
||||
-->
|
||||
<!-- For marks of secondary indices. -->
|
||||
<!-- <index_mark_cache_size>5368709120</index_mark_cache_size> -->
|
||||
|
||||
<!-- If you enable the `min_bytes_to_use_mmap_io` setting,
|
||||
the data in MergeTree tables can be read with mmap to avoid copying from kernel to userspace.
|
||||
@ -432,13 +430,23 @@
|
||||
The cache is dropped (the files are closed) automatically on removal of old parts in MergeTree,
|
||||
also it can be dropped manually by the SYSTEM DROP MMAP CACHE query.
|
||||
-->
|
||||
<mmap_cache_size>1000</mmap_cache_size>
|
||||
<!-- <mmap_cache_size>1024</mmap_cache_size> -->
|
||||
|
||||
<!-- Cache size in bytes for compiled expressions.-->
|
||||
<compiled_expression_cache_size>134217728</compiled_expression_cache_size>
|
||||
<!-- <compiled_expression_cache_size>134217728</compiled_expression_cache_size> -->
|
||||
|
||||
<!-- Cache size in elements for compiled expressions.-->
|
||||
<compiled_expression_cache_elements_size>10000</compiled_expression_cache_elements_size>
|
||||
<!-- <compiled_expression_cache_elements_size>10000</compiled_expression_cache_elements_size> -->
|
||||
|
||||
<!-- Configuration for the query cache -->
|
||||
<!--
|
||||
<query_cache>
|
||||
<max_size_in_bytes>1073741824</max_size_in_bytes>
|
||||
<max_entries>1024</max_entries>
|
||||
<max_entry_size_in_bytes>1048576</max_entry_size_in_bytes>
|
||||
<max_entry_size_in_rows>30000000</max_entry_size_in_rows>
|
||||
</query_cache>
|
||||
-->
|
||||
|
||||
<!-- Cache path for custom (created from SQL) cached disks -->
|
||||
<custom_cached_disks_base_directory>/var/lib/clickhouse/caches/</custom_cached_disks_base_directory>
|
||||
@ -1642,14 +1650,6 @@
|
||||
-->
|
||||
<!-- </kafka> -->
|
||||
|
||||
<!-- Configuration for the query cache -->
|
||||
<query_cache>
|
||||
<max_size_in_bytes>1073741824</max_size_in_bytes>
|
||||
<max_entries>1024</max_entries>
|
||||
<max_entry_size_in_bytes>1048576</max_entry_size_in_bytes>
|
||||
<max_entry_size_in_rows>30000000</max_entry_size_in_rows>
|
||||
</query_cache>
|
||||
|
||||
<backups>
|
||||
<allowed_path>backups</allowed_path>
|
||||
|
||||
|
@ -262,6 +262,9 @@ uncompressed_cache_size: 8589934592
|
||||
# You should not lower this value.
|
||||
# mark_cache_size: 5368709120
|
||||
|
||||
# For marks of secondary indices.
|
||||
# index_mark_cache_size: 5368709120
|
||||
|
||||
# If you enable the `min_bytes_to_use_mmap_io` setting,
|
||||
# the data in MergeTree tables can be read with mmap to avoid copying from kernel to userspace.
|
||||
# It makes sense only for large files and helps only if data reside in page cache.
|
||||
@ -277,13 +280,20 @@ uncompressed_cache_size: 8589934592
|
||||
# in query or server memory usage - because this memory can be discarded similar to OS page cache.
|
||||
# The cache is dropped (the files are closed) automatically on removal of old parts in MergeTree,
|
||||
# also it can be dropped manually by the SYSTEM DROP MMAP CACHE query.
|
||||
mmap_cache_size: 1000
|
||||
# mmap_cache_size: 1024
|
||||
|
||||
# Cache size in bytes for compiled expressions.
|
||||
compiled_expression_cache_size: 134217728
|
||||
# compiled_expression_cache_size: 134217728
|
||||
|
||||
# Cache size in elements for compiled expressions.
|
||||
compiled_expression_cache_elements_size: 10000
|
||||
# compiled_expression_cache_elements_size: 10000
|
||||
|
||||
# Configuration for the query cache
|
||||
# query_cache:
|
||||
# max_size_in_bytes: 1073741824
|
||||
# max_entries: 1024
|
||||
# max_entry_size_in_bytes: 1048576
|
||||
# max_entry_size_in_rows: 30000000
|
||||
|
||||
# Path to data directory, with trailing slash.
|
||||
path: /var/lib/clickhouse/
|
||||
|
@ -90,13 +90,13 @@ static constexpr auto DEFAULT_UNCOMPRESSED_CACHE_POLICY = "SLRU";
|
||||
static constexpr auto DEFAULT_UNCOMPRESSED_CACHE_MAX_SIZE = 0_MiB;
|
||||
static constexpr auto DEFAULT_UNCOMPRESSED_CACHE_SIZE_RATIO = 0.5l;
|
||||
static constexpr auto DEFAULT_MARK_CACHE_POLICY = "SLRU";
|
||||
static constexpr auto DEFAULT_MARK_CACHE_MAX_SIZE = 5120_MiB;
|
||||
static constexpr auto DEFAULT_MARK_CACHE_MAX_SIZE = 5_GiB;
|
||||
static constexpr auto DEFAULT_MARK_CACHE_SIZE_RATIO = 0.5l;
|
||||
static constexpr auto DEFAULT_INDEX_UNCOMPRESSED_CACHE_POLICY = "SLRU";
|
||||
static constexpr auto DEFAULT_INDEX_UNCOMPRESSED_CACHE_MAX_SIZE = 0;
|
||||
static constexpr auto DEFAULT_INDEX_UNCOMPRESSED_CACHE_SIZE_RATIO = 0.5;
|
||||
static constexpr auto DEFAULT_INDEX_MARK_CACHE_POLICY = "SLRU";
|
||||
static constexpr auto DEFAULT_INDEX_MARK_CACHE_MAX_SIZE = 5120_MiB;
|
||||
static constexpr auto DEFAULT_INDEX_MARK_CACHE_MAX_SIZE = 5_GiB;
|
||||
static constexpr auto DEFAULT_INDEX_MARK_CACHE_SIZE_RATIO = 0.3;
|
||||
static constexpr auto DEFAULT_MMAP_CACHE_MAX_SIZE = 1_KiB; /// chosen by rolling dice
|
||||
static constexpr auto DEFAULT_COMPILED_EXPRESSION_CACHE_MAX_SIZE = 128_MiB;
|
||||
|
Loading…
Reference in New Issue
Block a user