2016-02-07 21:58:58 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<yandex>
|
|
|
|
<logger>
|
|
|
|
<level>trace</level>
|
|
|
|
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
|
|
|
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
|
|
|
<size>1000M</size>
|
2016-06-10 12:34:35 +00:00
|
|
|
<count>10</count>
|
2016-02-07 21:58:58 +00:00
|
|
|
</logger>
|
|
|
|
|
|
|
|
|
|
|
|
<http_port>8123</http_port>
|
|
|
|
<tcp_port>9000</tcp_port>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Port for communication between replicas. Used for data exchange. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<interserver_http_port>9009</interserver_http_port>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Hostname that is used by other replicas to request this server.
|
|
|
|
If not specified, than it is determined analoguous to 'hostname -f' command.
|
|
|
|
This setting could be used to switch replication to another network interface.
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<!--
|
|
|
|
<interserver_http_host>example.yandex.ru</interserver_http_host>
|
|
|
|
-->
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Listen specified host. :: - is wildcard IPv6 address, allows to accept connections both with IPv4 and IPv6 from everywhere. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<listen_host>::</listen_host>
|
|
|
|
|
|
|
|
<max_connections>4096</max_connections>
|
|
|
|
<keep_alive_timeout>3</keep_alive_timeout>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Maximum number of concurrent queries. -->
|
2016-04-19 19:28:41 +00:00
|
|
|
<max_concurrent_queries>100</max_concurrent_queries>
|
2016-02-07 21:58:58 +00:00
|
|
|
|
2016-11-03 19:59:53 +00:00
|
|
|
<!-- Set limit on number of open files (default: maximum). This setting makes sense on Mac OS X because getrlimit() fails to retrieve
|
|
|
|
correct maximum value. -->
|
|
|
|
<!-- <max_open_files>262144</max_open_files> -->
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Size of cache of uncompressed blocks of data, used in tables of MergeTree family.
|
|
|
|
In bytes. Cache is single for server. Memory is allocated only on demand.
|
|
|
|
Cache is used when 'use_uncompressed_cache' user setting turned on (off by default).
|
|
|
|
Uncompressed cache is advantageous only for very short queries and in rare cases.
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<uncompressed_cache_size>8589934592</uncompressed_cache_size>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Approximate size of mark cache, used in tables of MergeTree family.
|
|
|
|
In bytes. Cache is single for server. Memory is allocated only on demand.
|
|
|
|
You should not lower this value.
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<mark_cache_size>5368709120</mark_cache_size>
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Path to data directory, with trailing slash. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<path>/opt/clickhouse/</path>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Path to temporary data for processing hard queries. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<tmp_path>/opt/clickhouse/tmp/</tmp_path>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Path to configuration file with users, access rights, profiles of settings, quotas. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<users_config>users.xml</users_config>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Default profile of settings.. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<default_profile>default</default_profile>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Default database. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<default_database>default</default_database>
|
|
|
|
|
2017-01-22 12:53:24 +00:00
|
|
|
<!-- Server time zone could be set here.
|
|
|
|
|
|
|
|
Time zone is used when converting between String and DateTime types,
|
|
|
|
when printing DateTime in text formats and parsing DateTime from text,
|
|
|
|
it is used in date and time related functions, if specific time zone was not passed as an argument.
|
|
|
|
|
|
|
|
Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.
|
|
|
|
If not specified, system time zone at server startup is used.
|
|
|
|
-->
|
|
|
|
<!-- <timezone>Europe/Moscow</timezone> -->
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Configuration of clusters that could be used in Distributed tables.
|
|
|
|
https://clickhouse.yandex/reference_en.html#Distributed
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<remote_servers incl="clickhouse_remote_servers" />
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- If element has 'incl' attribute, then for it's value will be used corresponding substitution from another file.
|
|
|
|
By default, path to file with substitutions is /etc/metrika.xml. It could be changed in config in 'include_from' element.
|
|
|
|
Values for substitutions are specified in /yandex/name_of_substitution elements in that file.
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- ZooKeeper is used to store metadata about replicas, when using Replicated tables.
|
|
|
|
Optional. If you don't use replicated tables, you could omit that.
|
2016-02-07 21:58:58 +00:00
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
See https://clickhouse.yandex/reference_en.html#Data%20replication
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<zookeeper incl="zookeeper-servers" optional="true" />
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Substitutions for parameters of replicated tables.
|
|
|
|
Optional. If you don't use replicated tables, you could omit that.
|
2016-02-07 21:58:58 +00:00
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
See https://clickhouse.yandex/reference_en.html#Creating%20replicated%20tables
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<macros incl="macros" optional="true" />
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Reloading interval for embedded dictionaries, in seconds. Default: 3600. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>
|
|
|
|
|
2016-05-17 15:43:40 +00:00
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Sending data to Graphite for monitoring. -->
|
2016-05-17 15:43:40 +00:00
|
|
|
<use_graphite>false</use_graphite>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Uncomment if use_graphite.
|
2016-02-07 21:58:58 +00:00
|
|
|
<graphite>
|
|
|
|
<host>127.0.0.1</host>
|
|
|
|
<port>42000</port>
|
|
|
|
<root_path>one_min</root_path>
|
|
|
|
<timeout>0.1</timeout>
|
|
|
|
</graphite>
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Query log. Used only for queries with setting log_queries = 1. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<query_log>
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- What table to insert data. If table is not exist, it will be created.
|
|
|
|
When query log structure is changed after system update,
|
|
|
|
then old table will be renamed and new table will be created automatically.
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<database>system</database>
|
|
|
|
<table>query_log</table>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Interval of flushing data. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
|
|
|
</query_log>
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Parameters for embedded dictionaries, used in Yandex.Metrica.
|
|
|
|
See https://clickhouse.yandex/reference_en.html#Internal%20dictionaries
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Path to file with region hierarchy. -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<!-- <path_to_regions_hierarchy_file>/opt/geo/regions_hierarchy.txt</path_to_regions_hierarchy_file> -->
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Path to directory with files containing names of regions -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<!-- <path_to_regions_names_files>/opt/geo/</path_to_regions_names_files> -->
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Configuration of external dictionaries. See:
|
|
|
|
https://clickhouse.yandex/reference_en.html#External%20Dictionaries
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
|
|
|
<dictionaries_config>*_dictionary.xml</dictionaries_config>
|
|
|
|
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Uncomment if you want data to be compressed 30-100% better.
|
|
|
|
Don't do that if you just started using ClickHouse.
|
2016-02-07 21:58:58 +00:00
|
|
|
-->
|
2016-03-28 15:31:02 +00:00
|
|
|
<compression incl="clickhouse_compression">
|
2016-02-07 21:58:58 +00:00
|
|
|
<!--
|
2016-05-22 01:45:30 +00:00
|
|
|
<!- - Set of variants. Checked in order. Last matching case wins. If nothing matches, lz4 will be used. - ->
|
2016-02-07 21:58:58 +00:00
|
|
|
<case>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!- - Conditions. All must be satisfied. Some conditions may be omitted. - ->
|
|
|
|
<min_part_size>10000000000</min_part_size> <!- - Min part size in bytes. - ->
|
|
|
|
<min_part_size_ratio>0.01</min_part_size_ratio> <!- - Min size of part relative to whole table size. - ->
|
2016-02-07 21:58:58 +00:00
|
|
|
|
2016-10-23 20:13:10 +00:00
|
|
|
<!- - What compression method to use. - ->
|
2016-05-24 18:03:23 +00:00
|
|
|
<method>zstd</method> <!- - Keep in mind that zstd compression library is highly experimental. - ->
|
2016-02-07 21:58:58 +00:00
|
|
|
</case>
|
|
|
|
-->
|
2016-03-28 15:31:02 +00:00
|
|
|
</compression>
|
2016-02-07 21:58:58 +00:00
|
|
|
|
2016-09-28 04:50:19 +00:00
|
|
|
<resharding>
|
|
|
|
<task_queue_path>/clickhouse/task_queue</task_queue_path>
|
|
|
|
</resharding>
|
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Settings to fine tune MergeTree tables. See documentation in source code, in MergeTreeSettings.h -->
|
2016-02-07 21:58:58 +00:00
|
|
|
<!--
|
|
|
|
<merge_tree>
|
|
|
|
<max_suspicious_broken_parts>5</max_suspicious_broken_parts>
|
|
|
|
</merge_tree>
|
|
|
|
-->
|
2016-04-24 10:40:32 +00:00
|
|
|
|
2016-05-22 01:45:30 +00:00
|
|
|
<!-- Example of parameters for GraphiteMergeTree table engine -->
|
2016-04-24 10:40:32 +00:00
|
|
|
<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>
|
2016-02-07 21:58:58 +00:00
|
|
|
</yandex>
|