Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Allow configuring dictionary lazy loading #54

Merged
merged 1 commit into from
Dec 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,16 @@ clickhouse_logger:
size: 1000M
count: 10

clickhouse_config_dictionaries_lazy_load: true

clickhouse_config:
max_connections: 2048
keep_alive_timeout: 3
max_concurrent_queries: 100
uncompressed_cache_size: 8589934592
mark_cache_size: 5368709120
builtin_dictionaries_reload_interval: 3600
dictionaries_lazy_load: "{{ clickhouse_config_dictionaries_lazy_load }}"
max_session_timeout: 3600
default_session_timeout: 60

Expand Down
3 changes: 3 additions & 0 deletions templates/config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@
<!-- Reloading interval for embedded dictionaries, in seconds. Default: 3600. -->
<builtin_dictionaries_reload_interval>{{ clickhouse_config.builtin_dictionaries_reload_interval }}</builtin_dictionaries_reload_interval>

<!-- If true, dictionaries are created lazily on first use. Otherwise they are initialised on server startup. Default: true -->
<!-- See also: https://clickhouse.tech/docs/en/operations/server-configuration-parameters/settings/#server_configuration_parameters-dictionaries_lazy_load -->
<dictionaries_lazy_load>{{ clickhouse_config.dictionaries_lazy_load }}</dictionaries_lazy_load>

<!-- Maximum session timeout, in seconds. Default: 3600. -->
<max_session_timeout>{{ clickhouse_config.max_session_timeout }}</max_session_timeout>
Expand Down