Managed ClickHouse® settings reference
- logLevel
- maxConnections
- maxConcurrentQueries
- keepAliveTimeout
- uncompressedCacheSize
- markCacheSize
- maxTableSizeToDrop
- maxPartitionSizeToDrop
- timezone
- backgroundPoolSize
- backgroundSchedulePoolSize
- backgroundFetchesPoolSize
- backgroundMovePoolSize
- backgroundCommonPoolSize
- backgroundMergesMutationsConcurrencyRatio
- totalMemoryProfilerStep
- MergeTree
- replicatedDeduplicationWindow
- replicatedDeduplicationWindowSeconds
- partsToDelayInsert
- partsToThrowInsert
- maxReplicatedMergesInQueue
- numberOfFreeEntriesInPoolToLowerMaxSizeOfMerge
- maxBytesToMergeAtMinSpaceInPool
- maxBytesToMergeAtMaxSpaceInPool
- minBytesForWidePart
- minRowsForWidePart
- ttlOnlyDropParts
- inactivePartsToDelayInsert
- inactivePartsToThrowInsert
- allowRemoteFsZeroCopyReplication
- mergeWithTtlTimeout
- mergeWithRecompressionTtlTimeout
- Compression
- graphiteRollup patterns
- Kafka
- kafkaTopics
- rabbitmq
- totalMemoryTrackerSampleProbability
The settings listed in this reference allow you to manage the settings of your DoubleCloud Managed ClickHouse® cluster directly from the console.
logLevel
|
Event logging level. |
Each next level contains complete information from the previous one:
-
LOG_LEVEL_ERROR
: errors in the cluster -
LOG_LEVEL_WARNING
: events that can cause errors in the cluster -
LOG_LEVEL_INFORMATION
: confirmation messages, information about events that mustn't cause errors in the cluster -
LOG_LEVEL_DEBUG
: information that can be useful for debugging -
LOG_LEVEL_TRACE
: all the available information on cluster operation.
For more information, see the official ClickHouse® documentation
maxConnections
|
The maximum number of inbound client connections. |
Minimum value: 10
Default value: 4096
Note
This setting doesn't account for housekeeping connections that run distributed subqueries.
maxConcurrentQueries
|
The maximum number of requests processed in parallel. |
Minimum value: 10
Default value: 500
keepAliveTimeout
|
The number of seconds ClickHouse® waits for incoming requests before closing the connection. |
You can specify this setting in seconds or nanoseconds.
Default value: 10
seconds or 10000000000
nanoseconds.
uncompressedCacheSize
|
Cache size (in bytes) for uncompressed data used by the MergeTree |
Default value: 8589934592
(8 GB).
Note
The uncompressed cache is advantageous in certain cases for short queries.
markCacheSize
|
Approximate size (in bytes) of the cache of marks used by the MergeTree |
Default value: 5368709120
(5 GB).
maxTableSizeToDrop
|
Table-based size restriction (in bytes) on deletion. |
If the MergeTree maxTableSizeToDrop
value, you can’t delete it using a DROP
Default value: 53687091200
(50 GB).
Tip
If you want to delete any table without restrictions, specify 0
in this setting.
maxPartitionSizeToDrop
|
Partition-based size restriction (in bytes) on deletion. |
If the partition maxPartitionSizeToDrop
value, you can’t delete a table using this partition with a DROP
Default value: 53687091200
(50 GB).
Tip
If you want to delete a table using any partition size without restrictions, specify 0
in this setting.
timezone
|
Your cluster's time zone. |
Specified by the IANA identifier as the UTC time zone or geographical location Africa/Abidjan
).
backgroundPoolSize
|
Sets the number of threads performing background merges and mutations |
You can only increase the number of threads at runtime. To lower the number of threads, restart the ClickHouse® server.
Warning
Before making changes to this setting, configure numberOfFreeEntriesInPoolToLowerMaxSizeOfMerge.
Default value: 16
Possible value: any positive integer.
For more information, see the official ClickHouse® documentation
backgroundSchedulePoolSize
|
The number of threads for background jobs for replicated tables, streams in Apache Kafka®, and DNS cache updates |
This setting requires a ClickHouse® server restart to apply.
Default value: 128
Possible value: any positive integer.
backgroundFetchesPoolSize
|
The number of threads performing background fetches for replicated tables. |
This setting requires a ClickHouse® server restart to apply.
Default value: 8
Possible value: any positive integer.
Tip
For production usage with frequent small insertions, we recommend using the default value.
backgroundMovePoolSize
|
The number of threads performing background moves of data parts for MergeTree |
This setting requires a ClickHouse® server restart to apply.
Default value: 8
Possible value: any positive integer.
backgroundCommonPoolSize
|
The number of threads performing background non-specialized operations like cleaning the filesystem for tables with MergeTree |
You can increase this setting at runtime. To lower it, restart the ClickHouse® server.
Default value: 8
Possible value: any positive integer.
backgroundMergesMutationsConcurrencyRatio
|
The ratio between the number of threads and the number of background merges and mutations that can be executed concurrently. |
For example, if this setting is 2
(default value) and backgroundPoolSize is 16
, ClickHouse® can execute 32
background merges in parallel.
You can only increase this ratio at runtime. To lower it, restart the ClickHouse® server.
Default value: 2
Possible value: any positive integer.
Tip
This setting is useful when giving small merges more execution priority.
totalMemoryProfilerStep
|
The memory size (in bytes) for a stack trace at every peak allocation step. |
The data is stored in the system.trace_log query_id
equal to an empty string.
Default value: 4194304
(4 MB)
Possible value: any positive integer.
MergeTree
This subsection contains settings for the MergeTree
replicatedDeduplicationWindow
|
The number of the most recently inserted blocks for which ClickHouse Keeper |
Default value: 100
Possible value: any positive integer.
Tip
To turn OFF deduplication, specify 0
in this setting.
For more information, see the official ClickHouse® documentation
replicatedDeduplicationWindowSeconds
|
The number of seconds after which the hash sums of the inserted blocks are removed from ClickHouse Keeper. |
You can specify this setting in seconds or nanoseconds.
Default value: 604800
seconds or 604800000000000
nanoseconds (1 week).
Possible value: any positive integer.
For more information, see the official ClickHouse® documentation
partsToDelayInsert
|
If the number of active parts in a single partition exceeds the value for this setting, it forces |
ClickHouse® artificially executes INSERT
longer (adds SLEEP
to your query), so that the background merge process can merge parts faster than they're added.
Default value: 150
Possible value: any positive integer.
partsToThrowInsert
|
If the number of active parts in a single partition exceeds the value for this setting,
|
Default value: 300
Possible value: any positive integer.
Tip
To achieve maximum performance of SELECT
queries, minimize the number of parts processed.
For more information, see the official ClickHouse® documentation
maxReplicatedMergesInQueue
|
The maximum number of merge tasks that can be in the MergeTree |
Default value: 16
Possible value: any positive integer.
numberOfFreeEntriesInPoolToLowerMaxSizeOfMerge
|
The threshold value of free entries in the pool. If the number of entries in the pool falls below this value, ClickHouse® reduces the maximum size of a data part to merge. |
Default value: 8
Possible value: any positive integer.
Tip
This setting can help handle small merges faster.
maxBytesToMergeAtMinSpaceInPool
|
The maximum total part size (in bytes) to be merged into one part, with the minimum available resources in the background pool. |
Default value: 1048576
(1 MB)
Possible value: any positive integer.
For more information, see the official ClickHouse® documentation
maxBytesToMergeAtMaxSpaceInPool
|
The maximum total parts size (in bytes) to be merged into one part if there are enough resources available. |
Default value: 161061273600
(150 GB)
Possible value: any positive integer.
For more information, see the official ClickHouse® documentation
minBytesForWidePart
|
The minimum number of bytes in a data part that can be stored in |
You can configure this setting alone, both this setting and minRowsForWidePart, or none of them.
Possible value: any positive integer.
For more information, see the official MergeTree Data Storage
minRowsForWidePart
|
The minimum number of rows in a data part that can be stored in |
You can configure this setting alone, both this setting and minBytesForWidePart, or none of them.
Possible value: any positive integer.
For more information, see the official MergeTree Data Storage documentation
ttlOnlyDropParts
|
Enables or disables complete dropping of data parts where all rows are expired in MergeTree |
When this setting is OFF (by default), ClickHouse® only deletes expired rows according to their TTL.
When this setting is ON, ClickHouse®r drops a whole part when all rows in it are expired.
Dropping whole parts instead of partial cleaning rows after TTL allows shorter mergeWithTtlTimeout times and the lower impact on system performance.
Default value: OFF.
Possible values: ON or OFF.
inactivePartsToDelayInsert
|
If the number of inactive parts in a single partition in the table equals this value, |
This setting s useful when ClickHouse® fails to clean up enough parts in time.
Default value: 0
(unlimited)
Possible value: any positive integer.
inactivePartsToThrowInsert
|
If the number of inactive parts in a single partition exceeds this setting's value,
|
Default value: 0
(unlimited)
Possible value: any positive integer.
allowRemoteFsZeroCopyReplication
|
If the data is stored remotely on several machines and needs to be synchronized, then only the metadata is replicated (paths to the data parts), but not the data itself. |
Default value: Off
.
mergeWithTtlTimeout
|
Minimum delay in seconds before repeating a merge with delete TTL. |
You can specify this setting in seconds or nanoseconds.
Default value: 14400
seconds or 14400000000000
nanoseconds (4 hours)
Possible value: any positive integer.
mergeWithRecompressionTtlTimeout
|
Minimum delay in seconds before repeating a merge with recompression TTL. |
You can specify this setting in seconds or nanoseconds.
Default value: 14400
seconds or 14400000000000
nanoseconds (4 hours)
Possible value: any positive integer.
Compression
These are data compression settings for MergeTree
Warning
We suggest you don't use the settings in this section if you're new to ClickHouse®.
You can configure multiple compression case sections. To create a case section, click +.
method
|
Compression method. |
You can select one of the following compression methods:
-
METHOD_LZ4
- the lz4 -
METHOD_ZSTD
- the zstd -
METHOD_LZ4HC
- the lz4HC, a high-compression lz4
minPartSize
|
The minimum size of a data part (in bytes). |
Possible value: any positive integer.
level
|
Compression level. |
Default value: 1
Possible value: any positive integer.
For more information, see the official ClickHouse® Codecs documentation
graphiteRollup patterns
These settings allow you to configure multiple rollup patterns. To create a pattern, click +.
Warning
Patterns must follow a strict order:
-
Patterns without
function
orretention
. -
Patterns with both
function
andretention
.
For more information on rollup patterns, see the official Graphite MergeTree documentation
regexp
|
A pattern for the metric name (a regular or DSL). |
function
|
The name of the aggregating function to apply to data whose age falls within the range: |
Accepted functions:
-
MIN
-
MAX
-
ANY
-
AVG
Note
The average is calculated imprecisely, like the average of the averages.
retention
You can configure multiple sets of retention parameters. To create a new set, click +.
age
|
Compression level. |
Default value: 0
Possible value: any positive integer.
precision
|
How precisely to define the age of the data in seconds. |
Possible value: must be a divisor for 86400
(seconds in a day).
Kafka
Settings for cluster-level Kafka access configuration.
securityProtocol
|
Protocol used to communicate with brokers. |
You can select one of the following security protocols:
-
SECURITY_PROTOCOL_PLAINTEXT
- plain text -
SECURITY_PROTOCOL_SSL
- SSL protocol -
SECURITY_PROTOCOL_SASL_PLAINTEXT
- Kafka's SASL-enabled plain text authentication mechanism -
SECURITY_PROTOCOL_SASL_SSL
- SASL-enabled SSL protocol.
saslMechanism
|
SASL mechanism to use for authentication. |
You can select one of the following mechanisms:
-
SASL_MECHANISM_GSSAPI
- GSSAPI -
SASL_MECHANISM_PLAIN
- Kafka's SASL-enabled plain text authentication mechanism -
SASL_MECHANISM_SCRAM_SHA_256
- SCRAM-SHA-256 mechanism -
SASL_MECHANISM_SCRAM_SHA_512
- SCRAM-SHA-512 mechanism.
saslUsername
|
SASL username for use with the |
saslPassword
|
SASL password for use with the |
kafkaTopics
Settings for topic-level Kafka access configuration.
The settings topic-level are similar to the cluster-level authentication settings in the Kafka section.
Note
If topic-level authentication settings are not specified for a Kafka table, global settings from the Kafka section will apply.
rabbitmq
These settings allow to connect your Managed ClickHouse® cluster to RabbitMQ
For more information on the RabbitMQ engine, see the official ClickHouse® documentation
username
|
Username for the RabbitMQ account. |
password
|
Password for the RabbitMQ account. |
vhost
|
RAbbitMQ virtual host |
totalMemoryTrackerSampleProbability
|
Allows to collect random allocations and deallocations, and writes them in the system.trace_log |
Sampling happens only when the amount of untracked memory exceeds the untracked memory limit (default value is 4
MB). You can lower the value if the totalMemoryProfilerStep setting's value is also lowered.
Default value: 0
(Disable writing of random allocations and deallocations in the system.trace_log system table)
Possible value: any positive integer.
Tip
You can set totalMemoryProfilerStep to 1
for extra fine-grained sampling.
system.query_log
You can't turn off this table
You can't apply system.query_log_enabled: false
, only change the size
and time
.
|
default: |
|
default: |
system.query_thread_log
|
default: |
|
default: |
|
default: |
system.query_views_log
|
default: |
|
default: |
|
default: |
system.part_log
You can't turn off this table
You can't apply system.part_log_enabled: false
, only change the size
and time
.
|
default: |
|
default: |
system.metric_log
|
default: |
|
default: |
|
default: |
system.asynchronous_metric_log:
|
default: |
|
default: |
|
default: |
system.text_log
|
default: |
|
default: |
|
default: |
|
default: |
system.trace_log
|
default: |
|
default: |
|
default: |
system.opentelemetry_span_log
|
default: |
|
default: |
|
default: |
system.session_log
|
default: |
|
default: |
|
default: |
system.zookeeper_log
|
default: |
|
default: |
|
default: |
system.asynchronous_insert_log
|
default: |
|
default: |
|
default: |