ClickHouse/dbms/src/Server/config.xml

221 lines
7.7 KiB
XML
Raw Normal View History

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>
<count>10</count>
2016-02-07 21:58:58 +00:00
</logger>
<http_port>8123</http_port>
<tcp_port>9000</tcp_port>
<!-- Port for communication between replicas. Used for data exchange. -->
2016-02-07 21:58:58 +00:00
<interserver_http_port>9009</interserver_http_port>
<!-- 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>
-->
<!-- 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>
<!-- 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
<!-- 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> -->
<!-- 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>
<!-- 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>
<!-- Path to data directory, with trailing slash. -->
2016-02-07 21:58:58 +00:00
<path>/opt/clickhouse/</path>
<!-- Path to temporary data for processing hard queries. -->
2016-02-07 21:58:58 +00:00
<tmp_path>/opt/clickhouse/tmp/</tmp_path>
<!-- 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>
<!-- Default profile of settings.. -->
2016-02-07 21:58:58 +00:00
<default_profile>default</default_profile>
<!-- Default database. -->
2016-02-07 21:58:58 +00:00
<default_database>default</default_database>
<!-- 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> -->
<!-- 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" />
<!-- 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
-->
<!-- 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
See https://clickhouse.yandex/reference_en.html#Data%20replication
2016-02-07 21:58:58 +00:00
-->
<zookeeper incl="zookeeper-servers" optional="true" />
<!-- 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
See https://clickhouse.yandex/reference_en.html#Creating%20replicated%20tables
2016-02-07 21:58:58 +00:00
-->
<macros incl="macros" optional="true" />
<!-- 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>
<!-- Sending data to Graphite for monitoring. -->
<use_graphite>false</use_graphite>
<!-- 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>
-->
<!-- Query log. Used only for queries with setting log_queries = 1. -->
2016-02-07 21:58:58 +00:00
<query_log>
<!-- 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>
<!-- Interval of flushing data. -->
2016-02-07 21:58:58 +00:00
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
</query_log>
<!-- 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
-->
<!-- 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> -->
<!-- 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> -->
<!-- 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>
<!-- 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
-->
<compression incl="clickhouse_compression">
2016-02-07 21:58:58 +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>
<!- - 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
<!- - 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>
-->
</compression>
2016-02-07 21:58:58 +00:00
<resharding>
<task_queue_path>/clickhouse/task_queue</task_queue_path>
</resharding>
<!-- 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
<!-- Protection from accidental DROP.
If size of a MergeTree table is greater than max_table_size_to_drop (in bytes) than table could not be dropped with any DROP query.
If you want do delete one table and don't want to restart clickhouse-server, you could create special file <clickhouse-path>/flags/force_drop_table and make DROP once.
By default max_table_size_to_drop is 50GB, max_table_size_to_drop=0 allows to DROP any tables.
Uncomment to disable protection.
-->
<!-- <max_table_size_to_drop>0</max_table_size_to_drop> -->
<!-- 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>