aboutsummaryrefslogtreecommitdiffstats
path: root/library/recipes/clickhouse/recipe/config/config_with_regions.xml
blob: 7a6069bb20ded8eec211df3501b51db4b6a835dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<yandex>
    <logger>
        <level>trace</level>
        <log from_env="RECIPE_CLICKHOUSE_LOG"/>
        <size>1000M</size>
        <count>10</count>
    </logger>

    <http_port from_env="RECIPE_CLICKHOUSE_HTTP_PORT"/>
    <tcp_port from_env="RECIPE_CLICKHOUSE_NATIVE_PORT"/>

    <max_connections>4096</max_connections>
    <keep_alive_timeout>3</keep_alive_timeout>
    <max_concurrent_queries>100</max_concurrent_queries>
    <uncompressed_cache_size>8589934592</uncompressed_cache_size>
    <mark_cache_size>5368709120</mark_cache_size>
    <path from_env="RECIPE_CLICKHOUSE_DIR"/>
    <tmp_path from_env="RECIPE_CLICKHOUSE_TMP_DIR"/>
    <user_files_path from_env="RECIPE_CLICKHOUSE_USER_FILES_DIR"/>
    <format_schema_path from_env="RECIPE_CLICKHOUSE_FORMAT_SCHEMA_DIR"/>
    <users_config>users.xml</users_config>
    <default_profile>default</default_profile>
    <default_database>default</default_database>

    <builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>

    <max_session_timeout>3600</max_session_timeout>
    <default_session_timeout>60</default_session_timeout>

    <query_log>
        <database>system</database>
        <table>query_log</table>
        <partition_by>toYYYYMM(event_date)</partition_by>
        <flush_interval_milliseconds>7500</flush_interval_milliseconds>
    </query_log>

    <dictionaries_config>*_dictionary.xml</dictionaries_config>

    <path_to_regions_hierarchy_file from_env="RECIPE_CLICKHOUSE_REGIONS_FILE_HIERARCHY" />
    <path_to_regions_names_files from_env="RECIPE_CLICKHOUSE_REGIONS_FILES_DIR" />

    <distributed_ddl>
        <path>/clickhouse/task_queue/ddl</path>
    </distributed_ddl>
</yandex>