145 lines
6.6 KiB
XML
145 lines
6.6 KiB
XML
|
|
<?xml version="1.0"?>
|
||
|
|
<clickhouse>
|
||
|
|
<logger>
|
||
|
|
<level>information</level>
|
||
|
|
<formatting><type>json</type></formatting>
|
||
|
|
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
||
|
|
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
||
|
|
<size>1000M</size>
|
||
|
|
<count>10</count>
|
||
|
|
</logger>
|
||
|
|
<http_port>8123</http_port>
|
||
|
|
<tcp_port>9000</tcp_port>
|
||
|
|
<mysql_port>9004</mysql_port>
|
||
|
|
<postgresql_port>9005</postgresql_port>
|
||
|
|
<interserver_http_port>9009</interserver_http_port>
|
||
|
|
<max_connections>4096</max_connections>
|
||
|
|
<keep_alive_timeout>3</keep_alive_timeout>
|
||
|
|
<max_concurrent_queries>100</max_concurrent_queries>
|
||
|
|
<max_server_memory_usage>0</max_server_memory_usage>
|
||
|
|
<max_thread_pool_size>10000</max_thread_pool_size>
|
||
|
|
<max_server_memory_usage_to_ram_ratio>0.9</max_server_memory_usage_to_ram_ratio>
|
||
|
|
<total_memory_profiler_step>4194304</total_memory_profiler_step>
|
||
|
|
<total_memory_tracker_sample_probability>0</total_memory_tracker_sample_probability>
|
||
|
|
<uncompressed_cache_size>8589934592</uncompressed_cache_size>
|
||
|
|
<mark_cache_size>5368709120</mark_cache_size>
|
||
|
|
<mmap_cache_size>1000</mmap_cache_size>
|
||
|
|
<compiled_expression_cache_size>134217728</compiled_expression_cache_size>
|
||
|
|
<compiled_expression_cache_elements_size>10000</compiled_expression_cache_elements_size>
|
||
|
|
<path>/var/lib/clickhouse/</path>
|
||
|
|
<tmp_path>/var/lib/clickhouse/tmp/</tmp_path>
|
||
|
|
<user_files_path>/var/lib/clickhouse/user_files/</user_files_path>
|
||
|
|
<user_scripts_path>/var/lib/clickhouse/user_scripts/</user_scripts_path>
|
||
|
|
<mlock_executable>true</mlock_executable>
|
||
|
|
<remap_executable>false</remap_executable>
|
||
|
|
<default_profile>default</default_profile>
|
||
|
|
<default_database>default</default_database>
|
||
|
|
<custom_settings_prefixes></custom_settings_prefixes>
|
||
|
|
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>
|
||
|
|
<max_session_timeout>3600</max_session_timeout>
|
||
|
|
<default_session_timeout>60</default_session_timeout>
|
||
|
|
<prometheus>
|
||
|
|
<endpoint>/metrics</endpoint>
|
||
|
|
<port>9363</port>
|
||
|
|
<metrics>true</metrics>
|
||
|
|
<events>true</events>
|
||
|
|
<asynchronous_metrics>true</asynchronous_metrics>
|
||
|
|
<status_info>true</status_info>
|
||
|
|
</prometheus>
|
||
|
|
<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>
|
||
|
|
<trace_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>trace_log</table>
|
||
|
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
</trace_log>
|
||
|
|
<query_thread_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>query_thread_log</table>
|
||
|
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
</query_thread_log>
|
||
|
|
<query_views_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>query_views_log</table>
|
||
|
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
</query_views_log>
|
||
|
|
<part_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>part_log</table>
|
||
|
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
</part_log>
|
||
|
|
<metric_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>metric_log</table>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
<collect_interval_milliseconds>1000</collect_interval_milliseconds>
|
||
|
|
</metric_log>
|
||
|
|
<asynchronous_metric_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>asynchronous_metric_log</table>
|
||
|
|
<flush_interval_milliseconds>7000</flush_interval_milliseconds>
|
||
|
|
</asynchronous_metric_log>
|
||
|
|
<opentelemetry_span_log>
|
||
|
|
<engine>
|
||
|
|
engine MergeTree
|
||
|
|
partition by toYYYYMM(finish_date)
|
||
|
|
order by (finish_date, finish_time_us, trace_id)
|
||
|
|
</engine>
|
||
|
|
<database>system</database>
|
||
|
|
<table>opentelemetry_span_log</table>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
</opentelemetry_span_log>
|
||
|
|
<crash_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>crash_log</table>
|
||
|
|
<partition_by />
|
||
|
|
<flush_interval_milliseconds>1000</flush_interval_milliseconds>
|
||
|
|
</crash_log>
|
||
|
|
<processors_profile_log>
|
||
|
|
<database>system</database>
|
||
|
|
<table>processors_profile_log</table>
|
||
|
|
<partition_by>toYYYYMM(event_date)</partition_by>
|
||
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||
|
|
</processors_profile_log>
|
||
|
|
<merge_tree_metadata_cache>
|
||
|
|
<lru_cache_size>268435456</lru_cache_size>
|
||
|
|
<continue_if_corrupted>true</continue_if_corrupted>
|
||
|
|
</merge_tree_metadata_cache>
|
||
|
|
<format_schema_path>/var/lib/clickhouse/format_schemas/</format_schema_path>
|
||
|
|
<top_level_domains_lists></top_level_domains_lists>
|
||
|
|
<user_directories>
|
||
|
|
<users_xml><path>users.xml</path></users_xml>
|
||
|
|
<local_directory><path>/var/lib/clickhouse/access/</path></local_directory>
|
||
|
|
</user_directories>
|
||
|
|
<quotas><default><interval><duration>3600</duration><queries>0</queries><errors>0</errors><result_rows>0</result_rows><read_rows>0</read_rows><execution_time>0</execution_time></interval></default></quotas>
|
||
|
|
<distributed_ddl>
|
||
|
|
<path>/clickhouse/task_queue/ddl</path>
|
||
|
|
</distributed_ddl>
|
||
|
|
<graphite_rollup_example>
|
||
|
|
<pattern><regexp>click_cost</regexp><function>any</function><retention><age>0</age><precision>3600</precision></retention><retention><age>86400</age><precision>60</precision></retention></pattern>
|
||
|
|
<default><function>max</function><retention><age>0</age><precision>60</precision></retention><retention><age>3600</age><precision>300</precision></retention><retention><age>86400</age><precision>3600</precision></retention></default>
|
||
|
|
</graphite_rollup_example>
|
||
|
|
<query_masking_rules>
|
||
|
|
<rule>
|
||
|
|
<name>hide encrypt/decrypt arguments</name>
|
||
|
|
<regexp>((?:aes_)?(?:encrypt|decrypt)(?:_mysql)?)\s*\(\s*\'(?:\\\\\'|.)+\'|.*?\s*\)</regexp>
|
||
|
|
<replace>\1(???)</replace>
|
||
|
|
</rule>
|
||
|
|
</query_masking_rules>
|
||
|
|
<send_crash_reports>
|
||
|
|
<enabled>false</enabled>
|
||
|
|
<anonymize>false</anonymize>
|
||
|
|
</send_crash_reports>
|
||
|
|
<encryption_codecs></encryption_codecs>
|
||
|
|
<dictionaries_config>*_dictionary.xml</dictionaries_config>
|
||
|
|
<user_defined_executable_functions_config>*function.xml</user_defined_executable_functions_config>
|
||
|
|
</clickhouse>
|