Skip to content

config/clickhouse.xml


     1 <clickhouse>
     2   <logger>
     3     <level>information</level>
     4     <log>__MORAINE_HOME__/clickhouse/log/clickhouse-server.log</log>
     5     <errorlog>__MORAINE_HOME__/clickhouse/log/clickhouse-server.err.log</errorlog>
     6     <size>1000M</size>
     7     <count>3</count>
     8   </logger>
     9  
    10   <path>__MORAINE_HOME__/clickhouse/data/</path>
    11   <tmp_path>__MORAINE_HOME__/clickhouse/tmp/</tmp_path>
    12   <user_files_path>__MORAINE_HOME__/clickhouse/user_files/</user_files_path>
    13   <format_schema_path>__MORAINE_HOME__/clickhouse/format_schemas/</format_schema_path>
    14   <users_config>__MORAINE_HOME__/clickhouse/users.xml</users_config>
    15   <pid>__MORAINE_HOME__/clickhouse/clickhouse.pid</pid>
    16  
    17   <listen_host>127.0.0.1</listen_host>
    18   <http_port>__CLICKHOUSE_HTTP_PORT__</http_port>
    19   <tcp_port>__CLICKHOUSE_TCP_PORT__</tcp_port>
    20   <interserver_http_port>__CLICKHOUSE_INTERSERVER_HTTP_PORT__</interserver_http_port>
    21  
    22   <max_connections>2048</max_connections>
    23   <max_concurrent_queries>500</max_concurrent_queries>
    24   <uncompressed_cache_size>536870912</uncompressed_cache_size>
    25   <mark_cache_size>536870912</mark_cache_size>
    26  
    27   <query_log>
    28     <database>system</database>
    29     <table>query_log</table>
    30     <flush_interval_milliseconds>7500</flush_interval_milliseconds>
    31   </query_log>
    32  
    33   <metric_log>
    34     <database>system</database>
    35     <table>metric_log</table>
    36     <collect_interval_milliseconds>1000</collect_interval_milliseconds>
    37     <flush_interval_milliseconds>7000</flush_interval_milliseconds>
    38   </metric_log>
    39  
    40   <asynchronous_metric_log>
    41     <database>system</database>
    42     <table>asynchronous_metric_log</table>
    43     <flush_interval_milliseconds>7000</flush_interval_milliseconds>
    44   </asynchronous_metric_log>
    45 </clickhouse>