Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

distributed_cache_* session settings

These settings are available in system.settings and are autogenerated from source.

distributed_cache_alignment

ClickHouse Cloud only
Type
UInt64
Default
0
Version history
VersionDefault valueComment
25.70Rename of distributed_cache_read_alignment

Only has an effect in ClickHouse Cloud. A setting for testing purposes, do not change it

distributed_cache_bypass_connection_pool

ClickHouse Cloud only
Type
Bool
Default
0
Version history
VersionDefault valueComment
24.100A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Allow to bypass distributed cache connection pool

distributed_cache_client_id

ClickHouse Cloud only
Version history
VersionDefault valueComment
26.9New setting (CI tests only) to override the distributed cache client id per query.
26.8New setting (CI tests only) to override the distributed cache client id per query.

Only has an effect in ClickHouse Cloud. A setting used only for CI tests - overrides the registry-configured distributed cache client id for this query’s requests when non-empty. Lets tests spread data across a bounded set of client ids while keeping the same data on the same client id. It requires ci_mode to be enabled in the distributed cache client config: when it is not (the default, as in production), a query that routes a read or write through the distributed cache fails with SUPPORT_IS_DISABLED instead of silently falling back to the configured client id. Queries that never reach the distributed cache are unaffected, so the value is ignored there.

distributed_cache_connect_backoff_max_ms

ClickHouse Cloud only
Type
UInt64
Default
50
Version history
VersionDefault valueComment
25.850New setting

Only has an effect in ClickHouse Cloud. Maximum backoff milliseconds for distributed cache connection creation.

distributed_cache_connect_backoff_min_ms

ClickHouse Cloud only
Type
UInt64
Default
0
Version history
VersionDefault valueComment
25.80New setting

Only has an effect in ClickHouse Cloud. Minimum backoff milliseconds for distributed cache connection creation.

distributed_cache_connect_max_tries

ClickHouse Cloud only
Type
UInt64
Default
5
Version history
VersionDefault valueComment
25.85Changed setting value
25.120Cloud only
24.1020A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Number of tries to connect to distributed cache if unsuccessful

distributed_cache_connect_timeout_ms

ClickHouse Cloud only
Type
UInt64
Default
50
Version history
VersionDefault valueComment
25.1050New setting

Only has an effect in ClickHouse Cloud. Connection timeout when connecting to distributed cache server.

distributed_cache_credentials_refresh_period_seconds

ClickHouse Cloud only
Type
UInt64
Default
5
Version history
VersionDefault valueComment
25.65New private setting

Only has an effect in ClickHouse Cloud. A period of credentials refresh.

distributed_cache_data_packet_ack_window

ClickHouse Cloud only
Type
UInt64
Default
5
Version history
VersionDefault valueComment
24.105A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. A window for sending ACK for DataPacket sequence in a single distributed cache read request

distributed_cache_discard_connection_if_unread_data

ClickHouse Cloud only
Type
Bool
Default
1
Version history
VersionDefault valueComment
24.111New setting
24.101New setting

Only has an effect in ClickHouse Cloud. Discard connection if some data is unread.

distributed_cache_fetch_metrics_only_from_current_az

ClickHouse Cloud only
Type
Bool
Default
1
Version history
VersionDefault valueComment
24.101A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Fetch metrics only from current availability zone in system.distributed_cache_metrics, system.distributed_cache_events

distributed_cache_file_cache_name

ClickHouse Cloud only
Version history
VersionDefault valueComment
26.1New setting.

Only has an effect in ClickHouse Cloud. A setting used only for CI tests - filesystem cache name to use on distributed cache.

distributed_cache_log_mode

ClickHouse Cloud only
Type
DistributedCacheLogMode
Default
on_error
Version history
VersionDefault valueComment
24.10on_errorA setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Mode for writing to system.distributed_cache_log

distributed_cache_max_unacked_inflight_packets

ClickHouse Cloud only
Type
UInt64
Default
10
Version history
VersionDefault valueComment
24.1010A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. A maximum number of unacknowledged in-flight packets in a single distributed cache read request

distributed_cache_min_bytes_for_seek

ClickHouse Cloud only
Type
UInt64
Default
0
Version history
VersionDefault valueComment
25.10New private setting.

Only has an effect in ClickHouse Cloud. Minimum number of bytes to do seek in distributed cache.

distributed_cache_min_inflight_bytes_to_discard_connection_on_seek

ClickHouse Cloud only
Type
UInt64
Default
4194304
Version history
VersionDefault valueComment
26.94194304New setting to drop and reopen a distributed cache connection on a seek when too many in-flight bytes would otherwise be discarded. Defaults to 4 MiB; 0 restores the previous behavior (always reuse the connection via the read range id).
26.84194304New setting to drop and reopen a distributed cache connection on a seek when too many in-flight bytes would otherwise be discarded. Defaults to 4 MiB; 0 restores the previous behavior (always reuse the connection via the read range id).
26.74194304New setting to drop and reopen a distributed cache connection on a seek when too many in-flight bytes would otherwise be discarded. Defaults to 4 MiB; 0 restores the previous behavior (always reuse the connection via the read range id).

Only has an effect in ClickHouse Cloud. On a seek away from the current position of an open distributed cache stream, if the estimated number of in-flight bytes that would have to be discarded to keep reusing the connection (via the read range id mechanism) exceeds this value, drop the connection and open a new one instead. This avoids draining a large amount of unused data when seeks are frequent. 0 disables this and always reuses the connection.

distributed_cache_pool_behaviour_on_limit

ClickHouse Cloud only
Type
DistributedCachePoolBehaviourOnLimit
Default
wait
Version history
VersionDefault valueComment
25.1waitCloud only
24.10allocate_bypassing_poolA setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Identifies behaviour of distributed cache connection on pool limit reached

distributed_cache_prefer_bigger_buffer_size

ClickHouse Cloud only
Type
Bool
Default
0
Version history
VersionDefault valueComment
25.100New setting.

Only has an effect in ClickHouse Cloud. Same as filesystem_cache_prefer_bigger_buffer_size, but for distributed cache.

distributed_cache_read_only_from_current_az

ClickHouse Cloud only
Type
Bool
Default
1
Version history
VersionDefault valueComment
25.51New setting

Only has an effect in ClickHouse Cloud. Allow to read only from current availability zone. If disabled, will read from all cache servers in all availability zones.

distributed_cache_read_request_max_tries

ClickHouse Cloud only
Type
UInt64
Default
10
Version history
VersionDefault valueComment
25.810Changed setting value
25.420New setting

Only has an effect in ClickHouse Cloud. Number of tries to do distributed cache read request if unsuccessful

distributed_cache_receive_response_wait_milliseconds

ClickHouse Cloud only
Type
UInt64
Default
60000
Version history
VersionDefault valueComment
24.1060000A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Wait time in milliseconds to receive data for request from distributed cache

distributed_cache_receive_timeout_milliseconds

ClickHouse Cloud only
Type
UInt64
Default
10000
Version history
VersionDefault valueComment
24.1010000A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Wait time in milliseconds to receive any kind of response from distributed cache

Cloud default value: 20000.

distributed_cache_receive_timeout_ms

ClickHouse Cloud only
Type
UInt64
Default
3000
Version history
VersionDefault valueComment
25.103000New setting

Only has an effect in ClickHouse Cloud. Timeout for receiving data from distributed cache server, in milliseconds. If no bytes were received in this interval, the exception is thrown.

distributed_cache_registry_show_certificate_and_signature

ClickHouse Cloud only
Type
Bool
Default
0
Version history
VersionDefault valueComment
26.60New setting to show the `certificate` and `signature` columns in `system.distributed_cache_registry`.

Only has an effect in ClickHouse Cloud. Show the certificate and signature columns in the system.distributed_cache_registry table. By default these columns are empty to keep the output compact; enable this setting to inspect them.

distributed_cache_send_timeout_ms

ClickHouse Cloud only
Type
UInt64
Default
3000
Version history
VersionDefault valueComment
25.103000New setting

Only has an effect in ClickHouse Cloud. Timeout for sending data to istributed cache server, in milliseconds. If a client needs to send some data but is not able to send any bytes in this interval, the exception is thrown.

distributed_cache_tcp_keep_alive_timeout_ms

ClickHouse Cloud only
Type
UInt64
Default
2900
Version history
VersionDefault valueComment
25.102900New setting

Only has an effect in ClickHouse Cloud. The time in milliseconds the connection to distributed cache server needs to remain idle before TCP starts sending keepalive probes.

distributed_cache_throw_on_error

ClickHouse Cloud only
Type
Bool
Default
0
Version history
VersionDefault valueComment
24.100A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Rethrow exception happened during communication with distributed cache or exception received from distributed cache. Otherwise fallback to skipping distributed cache on error

distributed_cache_use_clients_cache_for_read

ClickHouse Cloud only
Type
Bool
Default
1
Version history
VersionDefault valueComment
25.121New setting

Only has an effect in ClickHouse Cloud. Use clients cache for read requests.

distributed_cache_wait_connection_from_pool_milliseconds

ClickHouse Cloud only
Type
UInt64
Default
100
Version history
VersionDefault valueComment
24.10100A setting for ClickHouse Cloud

Only has an effect in ClickHouse Cloud. Wait time in milliseconds to receive connection from connection pool if distributed_cache_pool_behaviour_on_limit is wait

distributed_cache_write_request_max_tries

ClickHouse Cloud only
Type
UInt64
Default
10
Version history
VersionDefault valueComment
26.410New setting

Only has an effect in ClickHouse Cloud. Number of tries to do distributed cache write request if unsuccessful

Navigation