If the number of active parts in a single partition exceeds the value for this setting, it forces INSERT queries to slow down.
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
Integer
If the number of active parts in a single partition exceeds the value for this setting, INSERT is interrupted with the following exception:
Too many parts (N). Merges are processing significantly slower than inserts.
Default value: 300
Possible value: any positive integer.
Tip
To achieve maximum performance of SELECT queries, minimize the number of parts processed.
The maximum number of merge tasks that can be in the MergeTree queue at the same time.
Default value: 16
Possible value: any positive integer.
numberOfFreeEntriesInPoolToLowerMaxSizeOfMerge
Integer
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
Integer
The maximum total part size (in bytes) to be merged into one part, with the minimum available resources in the background pool.
Enables or disables complete dropping of data parts where all rows are expired in MergeTree tables.
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
Integer
If the number of inactive parts in a single partition in the table equals this value, INSERT artificially slows down.
This setting s useful when ClickHouse® fails to clean up enough parts in time.
Default value: 0 (unlimited)
Possible value: any positive integer.
inactivePartsToThrowInsert
Integer
If the number of inactive parts in a single partition exceeds this setting's value, INSERT is interrupted with the following exception:
Too many inactive parts (N). Parts cleaning are processing significantly slower than inserts.
Default value: 0 (unlimited)
Possible value: any positive integer.
allowRemoteFsZeroCopyReplication
Checkbox
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
Integer
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
Integer
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 type tables.
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
Selector
Compression method.
You can select one of the following compression methods:
Allows to collect random allocations and deallocations, and writes them in the system.trace_log system table with trace_type equal to a MemorySample with the specified probability. The probability is for every allocation or deallocations, regardless of the allocation size.
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)