2018-01-15 18:57:10 +00:00
|
|
|
<?xml version="1.0"?>
|
2018-01-26 09:03:38 +00:00
|
|
|
<!-- Config for test server -->
|
2018-01-15 18:57:10 +00:00
|
|
|
<yandex>
|
|
|
|
<logger>
|
|
|
|
<level>trace</level>
|
|
|
|
<log>/tmp/clickhouse/log/clickhouse-server.log</log>
|
|
|
|
<errorlog>/tmp/clickhouse/log/clickhouse-server.err.log</errorlog>
|
|
|
|
<size>10M</size>
|
|
|
|
<count>1</count>
|
2018-03-29 01:41:06 +00:00
|
|
|
<compress>0</compress>
|
2018-01-15 18:57:10 +00:00
|
|
|
</logger>
|
2018-02-12 19:36:18 +00:00
|
|
|
<listen_host>::</listen_host>
|
2018-04-06 12:07:40 +00:00
|
|
|
<listen_host>0.0.0.0</listen_host>
|
2018-02-12 19:36:18 +00:00
|
|
|
<listen_try>1</listen_try>
|
2018-01-15 18:57:10 +00:00
|
|
|
<http_port>58123</http_port>
|
|
|
|
<tcp_port>59000</tcp_port>
|
2018-03-13 19:49:21 +00:00
|
|
|
<https_port>58443</https_port>
|
2018-03-29 01:41:06 +00:00
|
|
|
<tcp_port_secure>59440</tcp_port_secure>
|
2018-01-15 18:57:10 +00:00
|
|
|
<interserver_http_port>59009</interserver_http_port>
|
2018-03-13 19:49:21 +00:00
|
|
|
<openSSL>
|
|
|
|
<server> <!-- Used for https server AND secure tcp port -->
|
|
|
|
<!-- openssl req -subj "/CN=localhost" -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout /etc/clickhouse-server/server.key -out /etc/clickhouse-server/server.crt -->
|
2018-08-28 11:57:35 +00:00
|
|
|
<certificateFile>/tmp/clickhouse/etc/server.crt</certificateFile>
|
|
|
|
<privateKeyFile>/tmp/clickhouse/etc/server.key</privateKeyFile>
|
2018-03-13 19:49:21 +00:00
|
|
|
<!-- openssl dhparam -out /etc/clickhouse-server/dhparam.pem 4096 -->
|
2018-08-28 11:57:35 +00:00
|
|
|
<dhParamsFile>/tmp/clickhouse/etc/dhparam.pem</dhParamsFile>
|
2018-03-13 19:49:21 +00:00
|
|
|
<verificationMode>none</verificationMode>
|
|
|
|
<loadDefaultCAFile>true</loadDefaultCAFile>
|
|
|
|
<cacheSessions>true</cacheSessions>
|
|
|
|
<disableProtocols>sslv2,sslv3</disableProtocols>
|
|
|
|
<preferServerCiphers>true</preferServerCiphers>
|
|
|
|
</server>
|
|
|
|
|
|
|
|
<client> <!-- Used for connecting to https dictionary source -->
|
|
|
|
<loadDefaultCAFile>true</loadDefaultCAFile>
|
|
|
|
<cacheSessions>true</cacheSessions>
|
|
|
|
<disableProtocols>sslv2,sslv3</disableProtocols>
|
|
|
|
<preferServerCiphers>true</preferServerCiphers>
|
2018-03-14 16:57:15 +00:00
|
|
|
<verificationMode>none</verificationMode>
|
2018-03-13 19:49:21 +00:00
|
|
|
<invalidCertificateHandler>
|
2018-03-14 16:57:15 +00:00
|
|
|
<name>AcceptCertificateHandler</name>
|
2018-03-13 19:49:21 +00:00
|
|
|
</invalidCertificateHandler>
|
|
|
|
</client>
|
|
|
|
</openSSL>
|
|
|
|
|
2018-01-15 18:57:10 +00:00
|
|
|
<keep_alive_timeout>3</keep_alive_timeout>
|
|
|
|
<path>/tmp/clickhouse/data/</path>
|
|
|
|
<tmp_path>/tmp/clickhouse/tmp/</tmp_path>
|
|
|
|
<users_config>users.xml</users_config>
|
|
|
|
<mark_cache_size>5368709120</mark_cache_size>
|
|
|
|
<default_profile>default</default_profile>
|
|
|
|
<default_database>default</default_database>
|
|
|
|
<timezone>Europe/Moscow</timezone>
|
|
|
|
<remote_servers incl="clickhouse_remote_servers" >
|
|
|
|
<!-- Test only shard config for testing distributed storage -->
|
2018-11-16 09:55:16 +00:00
|
|
|
<test_unavailable_shard>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>localhost</host>
|
|
|
|
<port>59000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
2018-12-17 18:06:50 +00:00
|
|
|
<host>localhost</host>
|
|
|
|
<port>1</port>
|
2018-11-16 09:55:16 +00:00
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</test_unavailable_shard>
|
2018-01-15 18:57:10 +00:00
|
|
|
<test_shard_localhost>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>localhost</host>
|
|
|
|
<port>59000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</test_shard_localhost>
|
2018-11-21 18:39:24 +00:00
|
|
|
<test_cluster_two_shards_localhost>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>localhost</host>
|
|
|
|
<port>59000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>localhost</host>
|
|
|
|
<port>59000</port>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</test_cluster_two_shards_localhost>
|
2018-03-29 01:41:06 +00:00
|
|
|
<test_shard_localhost_secure>
|
|
|
|
<shard>
|
|
|
|
<replica>
|
|
|
|
<host>localhost</host>
|
|
|
|
<port>59440</port>
|
|
|
|
<secure>1</secure>
|
|
|
|
</replica>
|
|
|
|
</shard>
|
|
|
|
</test_shard_localhost_secure>
|
2018-01-15 18:57:10 +00:00
|
|
|
</remote_servers>
|
2018-05-08 19:44:54 +00:00
|
|
|
<include_from/>
|
2018-01-15 18:57:10 +00:00
|
|
|
<zookeeper incl="zookeeper-servers" optional="true" />
|
|
|
|
<macros incl="macros" optional="true" />
|
|
|
|
<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>
|
|
|
|
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
|
|
|
</query_log>
|
2019-05-29 14:16:20 +00:00
|
|
|
<dictionaries_config>*_dictionary.xml</dictionaries_config>
|
2018-01-15 18:57:10 +00:00
|
|
|
<compression incl="clickhouse_compression">
|
|
|
|
</compression>
|
|
|
|
<distributed_ddl>
|
|
|
|
<path>/clickhouse/task_queue/ddl</path>
|
|
|
|
</distributed_ddl>
|
|
|
|
<format_schema_path>/tmp/clickhouse/data/format_schemas/</format_schema_path>
|
|
|
|
</yandex>
|