Debian Codegraph @

ansible_collections/community/clickhouse/tests/integration/targets/clickhouse_cfg_info/files/config.xml

raw
1 <!--
2 NOTE: User and query level settings are set up in "users.xml" file.
3 If you have accidentally specified user-level settings here, server won't start.
4 You can either move the settings to the right place inside "users.xml" file
5 or add <skip_check_for_incorrect_settings>1</skip_check_for_incorrect_settings> here.
6 -->
7 <clickhouse>
8 <logger>
9 <!-- Possible levels [1]:
10
11 - none (turns off logging)
12 - fatal
13 - critical
14 - error
15 - warning
16 - notice
17 - information
18 - debug
19 - trace
20 - test (not for production usage)
21
22 [1]: https://github.com/pocoproject/poco/blob/poco-1.9.4-release/Foundation/include/Poco/Logger.h#L105-L114
23 -->
24 <level>trace</level>
25 <log>/var/log/clickhouse-server/clickhouse-server.log</log>
26 <errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
27 <!-- Rotation policy
28 See https://github.com/pocoproject/poco/blob/poco-1.9.4-release/Foundation/include/Poco/FileChannel.h#L54-L85
29 -->
30 <size>1000M</size>
31 <count>10</count>
32
33 <!-- <console>1</console> --> <!-- Default behavior is autodetection (log to console if not daemon mode and is tty) -->
34 <!-- <console_log_level>trace</console_log_level> -->
35
36 <!-- <use_syslog>0</use_syslog> -->
37 <!-- <syslog_level>trace</syslog_level> -->
38
39 <!-- <stream_compress>0</stream_compress> -->
40
41 <!-- Per level overrides (legacy):
42
43 For example to suppress logging of the ConfigReloader you can use:
44 NOTE: levels.logger is reserved, see below.
45 -->
46 <!--
47 <levels>
48 <ConfigReloader>none</ConfigReloader>
49 </levels>
50 -->
51
52 <!-- Per level overrides:
53
54 For example to suppress logging of the RBAC for default user you can use:
55 (But please note that the logger name maybe changed from version to version, even after minor upgrade)
56 -->
57 <!--
58 <levels>
59 <logger>
60 <name>ContextAccess (default)</name>
61 <level>none</level>
62 </logger>
63 <logger>
64 <name>DatabaseOrdinary (test)</name>
65 <level>none</level>
66 </logger>
67 </levels>
68 -->
69 <!-- Structured log formatting:
70 You can specify log format(for now, JSON only). In that case, the console log will be printed
71 in specified format like JSON.
72 For example, as below:
73 {"date_time":"1650918987.180175","thread_name":"#1","thread_id":"254545","level":"Trace","query_id":"","logger_name":"BaseDaemon","message":"Received signal 2","source_file":"../base/daemon/BaseDaemon.cpp; virtual void SignalListener::run()","source_line":"192"}
74 To enable JSON logging support, please uncomment the entire <formatting> tag below.
75
76 a) You can modify key names by changing values under tag values inside <names> tag.
77 For example, to change DATE_TIME to MY_DATE_TIME, you can do like:
78 <date_time>MY_DATE_TIME</date_time>
79 b) You can stop unwanted log properties to appear in logs. To do so, you can simply comment out (recommended)
80 that property from this file.
81 For example, if you do not want your log to print query_id, you can comment out only <query_id> tag.
82 However, if you comment out all the tags under <names>, the program will print default values for as
83 below.
84 -->
85 <!-- <formatting>
86 <type>json</type>
87 <names>
88 <date_time>date_time</date_time>
89 <thread_name>thread_name</thread_name>
90 <thread_id>thread_id</thread_id>
91 <level>level</level>
92 <query_id>query_id</query_id>
93 <logger_name>logger_name</logger_name>
94 <message>message</message>
95 <source_file>source_file</source_file>
96 <source_line>source_line</source_line>
97 </names>
98 </formatting> -->
99 </logger>
100
101 <url_scheme_mappers>
102 <s3>
103 <to>https://{bucket}.s3.amazonaws.com</to>
104 </s3>
105 <gs>
106 <to>https://storage.googleapis.com/{bucket}</to>
107 </gs>
108 <oss>
109 <to>https://{bucket}.oss.aliyuncs.com</to>
110 </oss>
111 </url_scheme_mappers>
112
113 <!-- Add headers to response in options request. OPTIONS method is used in CORS preflight requests. -->
114 <http_options_response>
115 <header>
116 <name>Access-Control-Allow-Origin</name>
117 <value>*</value>
118 </header>
119 <header>
120 <name>Access-Control-Allow-Headers</name>
121 <value>origin, x-requested-with, x-clickhouse-format, x-clickhouse-user, x-clickhouse-key, Authorization</value>
122 </header>
123 <header>
124 <name>Access-Control-Allow-Methods</name>
125 <value>POST, GET, OPTIONS</value>
126 </header>
127 <header>
128 <name>Access-Control-Max-Age</name>
129 <value>86400</value>
130 </header>
131 </http_options_response>
132
133 <!-- It is the name that will be shown in the clickhouse-client.
134 By default, anything with "production" will be highlighted in red in query prompt.
135 -->
136 <!--display_name>production</display_name-->
137
138 <!-- Port for HTTP API. See also 'https_port' for secure connections.
139 This interface is also used by ODBC and JDBC drivers (DataGrip, Dbeaver, ...)
140 and by most of web interfaces (embedded UI, Grafana, Redash, ...).
141 -->
142 <http_port>8123</http_port>
143
144 <!-- Port for interaction by native protocol with:
145 - clickhouse-client and other native ClickHouse tools (clickhouse-benchmark);
146 - clickhouse-server with other clickhouse-servers for distributed query processing;
147 - ClickHouse drivers and applications supporting native protocol
148 (this protocol is also informally called as "the TCP protocol");
149 See also 'tcp_port_secure' for secure connections.
150 -->
151 <tcp_port>9000</tcp_port>
152
153 <!-- Chunked capabilities for native protocol by server.
154 Can be enabled separately for send and receive channels.
155 Supported modes:
156 - chunked - server requires from client to have chunked enabled;
157 - chunked_optional - server supports both chunked and notchunked protocol;
158 - notchunked - server requires from client notchunked protocol (current default);
159 - notchunked_optional - server supports both chunked and notchunked protocol.
160 -->
161 <!--
162 <proto_caps>
163 <send>notchunked_optional</send>
164 <recv>notchunked_optional</recv>
165 </proto_caps>
166 -->
167
168 <!-- Compatibility with MySQL protocol.
169 ClickHouse will pretend to be MySQL for applications connecting to this port.
170 -->
171 <mysql_port>9004</mysql_port>
172
173 <!-- Compatibility with PostgreSQL protocol.
174 ClickHouse will pretend to be PostgreSQL for applications connecting to this port.
175 -->
176 <postgresql_port>9005</postgresql_port>
177
178 <!-- HTTP API with TLS (HTTPS).
179 You have to configure certificate to enable this interface.
180 See the openSSL section below.
181 -->
182 <!-- <https_port>8443</https_port> -->
183
184 <!-- Native interface with TLS.
185 You have to configure certificate to enable this interface.
186 See the openSSL section below.
187 -->
188 <!-- <tcp_port_secure>9440</tcp_port_secure> -->
189
190 <!-- Native interface wrapped with PROXYv1 protocol
191 PROXYv1 header sent for every connection.
192 ClickHouse will extract information about proxy-forwarded client address from the header.
193 -->
194 <!-- <tcp_with_proxy_port>9011</tcp_with_proxy_port> -->
195
196 <!-- Port for communication between replicas. Used for data exchange.
197 It provides low-level data access between servers.
198 This port should not be accessible from untrusted networks.
199 See also 'interserver_http_credentials'.
200 Data transferred over connections to this port should not go through untrusted networks.
201 See also 'interserver_https_port'.
202 -->
203 <interserver_http_port>9009</interserver_http_port>
204
205 <!-- Port for communication between replicas with TLS.
206 You have to configure certificate to enable this interface.
207 See the openSSL section below.
208 See also 'interserver_http_credentials'.
209 -->
210 <!-- <interserver_https_port>9010</interserver_https_port> -->
211
212 <!-- Hostname that is used by other replicas to request this server.
213 If not specified, then it is determined analogous to 'hostname -f' command.
214 This setting could be used to switch replication to another network interface
215 (the server may be connected to multiple networks via multiple addresses)
216 -->
217
218 <!--
219 <interserver_http_host>example.clickhouse.com</interserver_http_host>
220 -->
221
222 <!-- You can specify credentials for authenthication between replicas.
223 This is required when interserver_https_port is accessible from untrusted networks,
224 and also recommended to avoid SSRF attacks from possibly compromised services in your network.
225 -->
226 <!--<interserver_http_credentials>
227 <user>interserver</user>
228 <password></password>
229 </interserver_http_credentials>-->
230
231 <!-- Listen specified address.
232 Use :: (wildcard IPv6 address), if you want to accept connections both with IPv4 and IPv6 from everywhere.
233 Notes:
234 If you open connections from wildcard address, make sure that at least one of the following measures applied:
235 - server is protected by firewall and not accessible from untrusted networks;
236 - all users are restricted to subset of network addresses (see users.xml);
237 - all users have strong passwords, only secure (TLS) interfaces are accessible, or connections are only made via TLS interfaces.
238 - users without password have readonly access.
239 See also: https://www.shodan.io/search?query=clickhouse
240 -->
241 <!-- <listen_host>::</listen_host> -->
242
243
244 <!-- Same for hosts without support for IPv6: -->
245 <!-- <listen_host>0.0.0.0</listen_host> -->
246
247 <!-- Default values - try listen localhost on IPv4 and IPv6. -->
248 <!--
249 <listen_host>::1</listen_host>
250 <listen_host>127.0.0.1</listen_host>
251 -->
252
253 <!-- <interserver_listen_host>::</interserver_listen_host> -->
254 <!-- Listen host for communication between replicas. Used for data exchange -->
255 <!-- Default values - equal to listen_host -->
256
257 <!-- Don't exit if IPv6 or IPv4 networks are unavailable while trying to listen. -->
258 <!-- <listen_try>0</listen_try> -->
259
260 <!-- Allow multiple servers to listen on the same address:port. This is not recommended.
261 -->
262 <!-- <listen_reuse_port>0</listen_reuse_port> -->
263
264 <!-- <listen_backlog>4096</listen_backlog> -->
265
266 <max_connections>4096</max_connections>
267
268 <!-- For 'Connection: keep-alive' in HTTP 1.1 -->
269 <keep_alive_timeout>10</keep_alive_timeout>
270
271 <!-- gRPC protocol (see src/Server/grpc_protos/clickhouse_grpc.proto for the API) -->
272 <!-- <grpc_port>9100</grpc_port> -->
273 <grpc>
274 <enable_ssl>false</enable_ssl>
275
276 <!-- The following two files are used only if enable_ssl=1 -->
277 <ssl_cert_file>/path/to/ssl_cert_file</ssl_cert_file>
278 <ssl_key_file>/path/to/ssl_key_file</ssl_key_file>
279
280 <!-- Whether server will request client for a certificate -->
281 <ssl_require_client_auth>false</ssl_require_client_auth>
282
283 <!-- The following file is used only if ssl_require_client_auth=1 -->
284 <ssl_ca_cert_file>/path/to/ssl_ca_cert_file</ssl_ca_cert_file>
285
286 <!-- Default transport compression type (can be overridden by client, see the transport_compression_type field in QueryInfo).
287 Supported algorithms: none, deflate, gzip, stream_gzip -->
288 <transport_compression_type>none</transport_compression_type>
289
290 <!-- Default transport compression level. Supported levels: 0..3 -->
291 <transport_compression_level>0</transport_compression_level>
292
293 <!-- Send/receive message size limits in bytes. -1 means unlimited -->
294 <max_send_message_size>-1</max_send_message_size>
295 <max_receive_message_size>-1</max_receive_message_size>
296
297 <!-- Enable if you want very detailed logs -->
298 <verbose_logs>false</verbose_logs>
299 </grpc>
300
301 <!-- Used with https_port and tcp_port_secure. Full ssl options list: https://github.com/ClickHouse-Extras/poco/blob/master/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h#L71 -->
302 <openSSL>
303 <server> <!-- Used for https server AND secure tcp port -->
304 <!-- 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 -->
305 <!-- <certificateFile>/etc/clickhouse-server/server.crt</certificateFile>
306 <privateKeyFile>/etc/clickhouse-server/server.key</privateKeyFile> -->
307 <!-- dhparams are optional. You can delete the <dhParamsFile> element.
308 To generate dhparams, use the following command:
309 openssl dhparam -out /etc/clickhouse-server/dhparam.pem 4096
310 Only file format with BEGIN DH PARAMETERS is supported.
311 -->
312 <!-- <dhParamsFile>/etc/clickhouse-server/dhparam.pem</dhParamsFile>-->
313 <verificationMode>none</verificationMode>
314 <loadDefaultCAFile>true</loadDefaultCAFile>
315 <cacheSessions>true</cacheSessions>
316 <disableProtocols>sslv2,sslv3</disableProtocols>
317 <preferServerCiphers>true</preferServerCiphers>
318
319 <invalidCertificateHandler>
320 <!-- The server, in contrast to the client, cannot ask about the certificate interactively.
321 The only reasonable option is to reject.
322 -->
323 <name>RejectCertificateHandler</name>
324 </invalidCertificateHandler>
325 </server>
326
327 <client> <!-- Used for connecting to https dictionary source and secured Zookeeper communication -->
328 <loadDefaultCAFile>true</loadDefaultCAFile>
329 <cacheSessions>true</cacheSessions>
330 <disableProtocols>sslv2,sslv3</disableProtocols>
331 <preferServerCiphers>true</preferServerCiphers>
332 <!-- Use for self-signed: <verificationMode>none</verificationMode> -->
333 <invalidCertificateHandler>
334 <!-- Use for self-signed: <name>AcceptCertificateHandler</name> -->
335 <name>RejectCertificateHandler</name>
336 </invalidCertificateHandler>
337 </client>
338 </openSSL>
339
340 <!-- Default root page on http[s] server. For example load UI from https://tabix.io/ when opening http://localhost:8123 -->
341 <!--
342 <http_server_default_response><![CDATA[<html ng-app="SMI2"><head><base href="http://ui.tabix.io/"></head><body><div ui-view="" class="content-ui"></div><script src="http://loader.tabix.io/master.js"></script></body></html>]]></http_server_default_response>
343 -->
344
345 <!-- The maximum number of query processing threads, excluding threads for retrieving data from remote servers, allowed to run all queries.
346 This is not a hard limit. In case if the limit is reached the query will still get at least one thread to run.
347 Query can upscale to desired number of threads during execution if more threads become available.
348 -->
349 <concurrent_threads_soft_limit_num>0</concurrent_threads_soft_limit_num>
350 <concurrent_threads_soft_limit_ratio_to_cores>2</concurrent_threads_soft_limit_ratio_to_cores>
351
352 <!-- Maximum number of concurrent queries. -->
353 <max_concurrent_queries>1000</max_concurrent_queries>
354
355 <!-- Maximum memory usage (resident set size) for server process.
356 Zero value or unset means default. Default is "max_server_memory_usage_to_ram_ratio" of available physical RAM.
357 If the value is larger than "max_server_memory_usage_to_ram_ratio" of available physical RAM, it will be cut down.
358
359 The constraint is checked on query execution time.
360 If a query tries to allocate memory and the current memory usage plus allocation is greater
361 than specified threshold, exception will be thrown.
362
363 It is not practical to set this constraint to small values like just a few gigabytes,
364 because memory allocator will keep this amount of memory in caches and the server will deny service of queries.
365 -->
366 <max_server_memory_usage>0</max_server_memory_usage>
367
368 <!-- Maximum number of threads in the Global thread pool.
369 This will default to a maximum of 10000 threads if not specified.
370 This setting will be useful in scenarios where there are a large number
371 of distributed queries that are running concurrently but are idling most
372 of the time, in which case a higher number of threads might be required.
373 -->
374
375 <max_thread_pool_size>10000</max_thread_pool_size>
376
377 <!-- Configure other thread pools: -->
378 <!--
379 <background_buffer_flush_schedule_pool_size>16</background_buffer_flush_schedule_pool_size>
380 <background_pool_size>16</background_pool_size>
381 <background_merges_mutations_concurrency_ratio>2</background_merges_mutations_concurrency_ratio>
382 <background_merges_mutations_scheduling_policy>round_robin</background_merges_mutations_scheduling_policy>
383 <background_move_pool_size>8</background_move_pool_size>
384 <background_fetches_pool_size>8</background_fetches_pool_size>
385 <background_common_pool_size>8</background_common_pool_size>
386 <background_schedule_pool_size>128</background_schedule_pool_size>
387 <background_message_broker_schedule_pool_size>16</background_message_broker_schedule_pool_size>
388 <background_distributed_schedule_pool_size>16</background_distributed_schedule_pool_size>
389 <tables_loader_foreground_pool_size>0</tables_loader_foreground_pool_size>
390 <tables_loader_background_pool_size>0</tables_loader_background_pool_size>
391 -->
392
393 <!-- Enables asynchronous loading of databases and tables to speedup server startup.
394 Queries to not yet loaded entity will be blocked until load is finished.
395 -->
396 <async_load_databases>true</async_load_databases>
397
398 <!-- On memory constrained environments you may have to set this to value larger than 1.
399 -->
400 <max_server_memory_usage_to_ram_ratio>0.9</max_server_memory_usage_to_ram_ratio>
401
402 <!-- Simple server-wide memory profiler. Collect a stack trace at every peak allocation step (in bytes).
403 Data will be stored in system.trace_log table with query_id = empty string.
404 Zero means disabled.
405 -->
406 <total_memory_profiler_step>4194304</total_memory_profiler_step>
407
408 <!-- Collect random allocations and deallocations and write them into system.trace_log with 'MemorySample' trace_type.
409 The probability is for every alloc/free regardless to the size of the allocation.
410 Note that sampling happens only when the amount of untracked memory exceeds the untracked memory limit,
411 which is 4 MiB by default but can be lowered if 'total_memory_profiler_step' is lowered.
412 You may want to set 'total_memory_profiler_step' to 1 for extra fine grained sampling.
413 -->
414 <total_memory_tracker_sample_probability>0</total_memory_tracker_sample_probability>
415
416 <!-- Set limit on number of open files (default: maximum). This setting makes sense on Mac OS X because getrlimit() fails to retrieve
417 correct maximum value. -->
418 <!-- <max_open_files>262144</max_open_files> -->
419
420 <!-- Size of cache of uncompressed blocks of data, used in tables of MergeTree family.
421 In bytes. Cache is single for server. Memory is allocated only on demand.
422 Cache is used when 'use_uncompressed_cache' user setting turned on (off by default).
423 Uncompressed cache is advantageous only for very short queries and in rare cases.
424
425 Note: uncompressed cache can be pointless for lz4, because memory bandwidth
426 is slower than multi-core decompression on some server configurations.
427 Enabling it can sometimes paradoxically make queries slower.
428 -->
429 <uncompressed_cache_size>8589934592</uncompressed_cache_size>
430
431 <!-- Approximate size of mark cache, used in tables of MergeTree family.
432 In bytes. Cache is single for server. Memory is allocated only on demand.
433 You should not lower this value. -->
434 <!-- <mark_cache_size>5368709120</mark_cache_size> -->
435
436 <!-- For marks of secondary indices. -->
437 <!-- <index_mark_cache_size>5368709120</index_mark_cache_size> -->
438
439 <!-- If you enable the `min_bytes_to_use_mmap_io` setting,
440 the data in MergeTree tables can be read with mmap to avoid copying from kernel to userspace.
441 It makes sense only for large files and helps only if data reside in page cache.
442 To avoid frequent open/mmap/munmap/close calls (which are very expensive due to consequent page faults)
443 and to reuse mappings from several threads and queries,
444 the cache of mapped files is maintained. Its size is the number of mapped regions (usually equal to the number of mapped files).
445 The amount of data in mapped files can be monitored
446 in system.metrics, system.metric_log by the MMappedFiles, MMappedFileBytes metrics
447 and in system.asynchronous_metrics, system.asynchronous_metrics_log by the MMapCacheCells metric,
448 and also in system.events, system.processes, system.query_log, system.query_thread_log, system.query_views_log by the
449 CreatedReadBufferMMap, CreatedReadBufferMMapFailed, MMappedFileCacheHits, MMappedFileCacheMisses events.
450 Note that the amount of data in mapped files does not consume memory directly and is not accounted
451 in query or server memory usage - because this memory can be discarded similar to OS page cache.
452 The cache is dropped (the files are closed) automatically on removal of old parts in MergeTree,
453 also it can be dropped manually by the SYSTEM DROP MMAP CACHE query.
454 -->
455 <!-- <mmap_cache_size>1024</mmap_cache_size> -->
456
457 <!-- Cache size in bytes for compiled expressions.-->
458 <!-- <compiled_expression_cache_size>134217728</compiled_expression_cache_size> -->
459
460 <!-- Cache size in elements for compiled expressions.-->
461 <!-- <compiled_expression_cache_elements_size>10000</compiled_expression_cache_elements_size> -->
462
463 <!-- Configuration for the query cache -->
464 <!--
465 <query_cache>
466 <max_size_in_bytes>1073741824</max_size_in_bytes>
467 <max_entries>1024</max_entries>
468 <max_entry_size_in_bytes>1048576</max_entry_size_in_bytes>
469 <max_entry_size_in_rows>30000000</max_entry_size_in_rows>
470 </query_cache>
471 -->
472
473 <!-- Cache path for custom (created from SQL) cached disks -->
474 <custom_cached_disks_base_directory>/var/lib/clickhouse/caches/</custom_cached_disks_base_directory>
475
476 <validate_tcp_client_information>false</validate_tcp_client_information>
477
478 <!-- Path to data directory, with trailing slash. -->
479 <path>/var/lib/clickhouse/</path>
480
481 <!-- Multi-disk configuration example: -->
482 <!--
483 <storage_configuration>
484 <disks>
485 <default>
486 <keep_free_space_bytes>0</keep_free_space_bytes>
487 </default>
488 <data>
489 <path>/data/</path>
490 <keep_free_space_bytes>0</keep_free_space_bytes>
491 </data>
492 <s3>
493 <type>s3</type>
494 <endpoint>http://path/to/endpoint</endpoint>
495 <access_key_id>your_access_key_id</access_key_id>
496 <secret_access_key>your_secret_access_key</secret_access_key>
497 </s3>
498 <blob_storage_disk>
499 <type>azure_blob_storage</type>
500 <storage_account_url>http://account.blob.core.windows.net</storage_account_url>
501 <container_name>container</container_name>
502 <account_name>account</account_name>
503 <account_key>pass123</account_key>
504 <metadata_path>/var/lib/clickhouse/disks/blob_storage_disk/</metadata_path>
505 <skip_access_check>false</skip_access_check>
506 </blob_storage_disk>
507 </disks>
508
509 <policies>
510 <all>
511 <volumes>
512 <main>
513 <disk>default</disk>
514 <disk>data</disk>
515 <disk>s3</disk>
516 <disk>blob_storage_disk</disk>
517
518 <max_data_part_size_bytes></max_data_part_size_bytes>
519 <max_data_part_size_ratio></max_data_part_size_ratio>
520 <perform_ttl_move_on_insert>true</perform_ttl_move_on_insert>
521 <load_balancing>round_robin</load_balancing>
522 </main>
523 </volumes>
524 <move_factor>0.2</move_factor>
525 </all>
526 </policies>
527 </storage_configuration>
528 -->
529
530
531 <!-- Path to temporary data for processing hard queries. -->
532 <tmp_path>/var/lib/clickhouse/tmp/</tmp_path>
533
534 <!-- Disable AuthType plaintext_password and no_password for ACL. -->
535 <allow_plaintext_password>1</allow_plaintext_password>
536 <allow_no_password>1</allow_no_password>
537 <allow_implicit_no_password>1</allow_implicit_no_password>
538
539 <!-- When a user does not specify a password type in the CREATE USER query, the default password type is used.
540 Accepted values are: 'plaintext_password', 'sha256_password', 'double_sha1_password', 'bcrypt_password'.
541 -->
542 <default_password_type>sha256_password</default_password_type>
543
544 <!-- Work factor for bcrypt_password authentication type-->
545 <bcrypt_workfactor>12</bcrypt_workfactor>
546
547 <!-- Complexity requirements for user passwords. -->
548 <!-- <password_complexity>
549 <rule>
550 <pattern>.{12}</pattern>
551 <message>be at least 12 characters long</message>
552 </rule>
553 <rule>
554 <pattern>\p{N}</pattern>
555 <message>contain at least 1 numeric character</message>
556 </rule>
557 <rule>
558 <pattern>\p{Ll}</pattern>
559 <message>contain at least 1 lowercase character</message>
560 </rule>
561 <rule>
562 <pattern>\p{Lu}</pattern>
563 <message>contain at least 1 uppercase character</message>
564 </rule>
565 <rule>
566 <pattern>[^\p{L}\p{N}]</pattern>
567 <message>contain at least 1 special character</message>
568 </rule>
569 </password_complexity> -->
570
571 <!-- Policy from the <storage_configuration> for the temporary files.
572 If not set <tmp_path> is used, otherwise <tmp_path> is ignored.
573
574 Notes:
575 - move_factor is ignored
576 - keep_free_space_bytes is ignored
577 - max_data_part_size_bytes is ignored
578 - you must have exactly one volume in that policy
579 -->
580 <!-- <tmp_policy>tmp</tmp_policy> -->
581
582 <!-- Directory with user provided files that are accessible by 'file' table function. -->
583 <user_files_path>/var/lib/clickhouse/user_files/</user_files_path>
584
585 <!-- LDAP server definitions. -->
586 <ldap_servers>
587 <!-- List LDAP servers with their connection parameters here to later 1) use them as authenticators for dedicated local users,
588 who have 'ldap' authentication mechanism specified instead of 'password', or to 2) use them as remote user directories.
589 Parameters:
590 host - LDAP server hostname or IP, this parameter is mandatory and cannot be empty.
591 port - LDAP server port, default is 636 if enable_tls is set to true, 389 otherwise.
592 bind_dn - template used to construct the DN to bind to.
593 The resulting DN will be constructed by replacing all '{user_name}' substrings of the template with the actual
594 user name during each authentication attempt.
595 user_dn_detection - section with LDAP search parameters for detecting the actual user DN of the bound user.
596 This is mainly used in search filters for further role mapping when the server is Active Directory. The
597 resulting user DN will be used when replacing '{user_dn}' substrings wherever they are allowed. By default,
598 user DN is set equal to bind DN, but once search is performed, it will be updated with to the actual detected
599 user DN value.
600 base_dn - template used to construct the base DN for the LDAP search.
601 The resulting DN will be constructed by replacing all '{user_name}' and '{bind_dn}' substrings
602 of the template with the actual user name and bind DN during the LDAP search.
603 scope - scope of the LDAP search.
604 Accepted values are: 'base', 'one_level', 'children', 'subtree' (the default).
605 search_filter - template used to construct the search filter for the LDAP search.
606 The resulting filter will be constructed by replacing all '{user_name}', '{bind_dn}', and '{base_dn}'
607 substrings of the template with the actual user name, bind DN, and base DN during the LDAP search.
608 Note, that the special characters must be escaped properly in XML.
609 verification_cooldown - a period of time, in seconds, after a successful bind attempt, during which a user will be assumed
610 to be successfully authenticated for all consecutive requests without contacting the LDAP server.
611 Specify 0 (the default) to disable caching and force contacting the LDAP server for each authentication request.
612 enable_tls - flag to trigger use of secure connection to the LDAP server.
613 Specify 'no' for plain text (ldap://) protocol (not recommended).
614 Specify 'yes' for LDAP over SSL/TLS (ldaps://) protocol (recommended, the default).
615 Specify 'starttls' for legacy StartTLS protocol (plain text (ldap://) protocol, upgraded to TLS).
616 tls_minimum_protocol_version - the minimum protocol version of SSL/TLS.
617 Accepted values are: 'ssl2', 'ssl3', 'tls1.0', 'tls1.1', 'tls1.2' (the default).
618 tls_require_cert - SSL/TLS peer certificate verification behavior.
619 Accepted values are: 'never', 'allow', 'try', 'demand' (the default).
620 tls_cert_file - path to certificate file.
621 tls_key_file - path to certificate key file.
622 tls_ca_cert_file - path to CA certificate file.
623 tls_ca_cert_dir - path to the directory containing CA certificates.
624 tls_cipher_suite - allowed cipher suite (in OpenSSL notation).
625 Example:
626 <my_ldap_server>
627 <host>localhost</host>
628 <port>636</port>
629 <bind_dn>uid={user_name},ou=users,dc=example,dc=com</bind_dn>
630 <verification_cooldown>300</verification_cooldown>
631 <enable_tls>yes</enable_tls>
632 <tls_minimum_protocol_version>tls1.2</tls_minimum_protocol_version>
633 <tls_require_cert>demand</tls_require_cert>
634 <tls_cert_file>/path/to/tls_cert_file</tls_cert_file>
635 <tls_key_file>/path/to/tls_key_file</tls_key_file>
636 <tls_ca_cert_file>/path/to/tls_ca_cert_file</tls_ca_cert_file>
637 <tls_ca_cert_dir>/path/to/tls_ca_cert_dir</tls_ca_cert_dir>
638 <tls_cipher_suite>ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:AES256-GCM-SHA384</tls_cipher_suite>
639 </my_ldap_server>
640 Example (typical Active Directory with configured user DN detection for further role mapping):
641 <my_ad_server>
642 <host>localhost</host>
643 <port>389</port>
644 <bind_dn>EXAMPLE\{user_name}</bind_dn>
645 <user_dn_detection>
646 <base_dn>CN=Users,DC=example,DC=com</base_dn>
647 <search_filter>(&amp;(objectClass=user)(sAMAccountName={user_name}))</search_filter>
648 </user_dn_detection>
649 <enable_tls>no</enable_tls>
650 </my_ad_server>
651 -->
652 </ldap_servers>
653
654 <!-- To enable Kerberos authentication support for HTTP requests (GSS-SPNEGO), for those users who are explicitly configured
655 to authenticate via Kerberos, define a single 'kerberos' section here.
656 Parameters:
657 principal - canonical service principal name, that will be acquired and used when accepting security contexts.
658 This parameter is optional, if omitted, the default principal will be used.
659 This parameter cannot be specified together with 'realm' parameter.
660 realm - a realm, that will be used to restrict authentication to only those requests whose initiator's realm matches it.
661 This parameter is optional, if omitted, no additional filtering by realm will be applied.
662 This parameter cannot be specified together with 'principal' parameter.
663 Example:
664 <kerberos />
665 Example:
666 <kerberos>
667 <principal>HTTP/[email protected]</principal>
668 </kerberos>
669 Example:
670 <kerberos>
671 <realm>EXAMPLE.COM</realm>
672 </kerberos>
673 -->
674
675 <!-- Sources to read users, roles, access rights, profiles of settings, quotas. -->
676 <user_directories>
677 <users_xml>
678 <!-- Path to configuration file with predefined users. -->
679 <path>users.xml</path>
680 </users_xml>
681 <local_directory>
682 <!-- Path to folder where users created by SQL commands are stored. -->
683 <path>/var/lib/clickhouse/access/</path>
684 </local_directory>
685
686 <!-- To add an LDAP server as a remote user directory of users that are not defined locally, define a single 'ldap' section
687 with the following parameters:
688 server - one of LDAP server names defined in 'ldap_servers' config section above.
689 This parameter is mandatory and cannot be empty.
690 roles - section with a list of locally defined roles that will be assigned to each user retrieved from the LDAP server.
691 If no roles are specified here or assigned during role mapping (below), user will not be able to perform any
692 actions after authentication.
693 role_mapping - section with LDAP search parameters and mapping rules.
694 When a user authenticates, while still bound to LDAP, an LDAP search is performed using search_filter and the
695 name of the logged in user. For each entry found during that search, the value of the specified attribute is
696 extracted. For each attribute value that has the specified prefix, the prefix is removed, and the rest of the
697 value becomes the name of a local role defined in ClickHouse, which is expected to be created beforehand by
698 CREATE ROLE command.
699 There can be multiple 'role_mapping' sections defined inside the same 'ldap' section. All of them will be
700 applied.
701 base_dn - template used to construct the base DN for the LDAP search.
702 The resulting DN will be constructed by replacing all '{user_name}', '{bind_dn}', and '{user_dn}'
703 substrings of the template with the actual user name, bind DN, and user DN during each LDAP search.
704 scope - scope of the LDAP search.
705 Accepted values are: 'base', 'one_level', 'children', 'subtree' (the default).
706 search_filter - template used to construct the search filter for the LDAP search.
707 The resulting filter will be constructed by replacing all '{user_name}', '{bind_dn}', '{user_dn}', and
708 '{base_dn}' substrings of the template with the actual user name, bind DN, user DN, and base DN during
709 each LDAP search.
710 Note, that the special characters must be escaped properly in XML.
711 attribute - attribute name whose values will be returned by the LDAP search. 'cn', by default.
712 prefix - prefix, that will be expected to be in front of each string in the original list of strings returned by
713 the LDAP search. Prefix will be removed from the original strings and resulting strings will be treated
714 as local role names. Empty, by default.
715 Example:
716 <ldap>
717 <server>my_ldap_server</server>
718 <roles>
719 <my_local_role1 />
720 <my_local_role2 />
721 </roles>
722 <role_mapping>
723 <base_dn>ou=groups,dc=example,dc=com</base_dn>
724 <scope>subtree</scope>
725 <search_filter>(&amp;(objectClass=groupOfNames)(member={bind_dn}))</search_filter>
726 <attribute>cn</attribute>
727 <prefix>clickhouse_</prefix>
728 </role_mapping>
729 </ldap>
730 Example (typical Active Directory with role mapping that relies on the detected user DN):
731 <ldap>
732 <server>my_ad_server</server>
733 <role_mapping>
734 <base_dn>CN=Users,DC=example,DC=com</base_dn>
735 <attribute>CN</attribute>
736 <scope>subtree</scope>
737 <search_filter>(&amp;(objectClass=group)(member={user_dn}))</search_filter>
738 <prefix>clickhouse_</prefix>
739 </role_mapping>
740 </ldap>
741 -->
742 </user_directories>
743
744 <access_control_improvements>
745 <!-- Enables logic that users without permissive row policies can still read rows using a SELECT query.
746 For example, if there two users A, B and a row policy is defined only for A, then
747 if this setting is true the user B will see all rows, and if this setting is false the user B will see no rows.
748 By default this setting is true. -->
749 <users_without_row_policies_can_read_rows>true</users_without_row_policies_can_read_rows>
750
751 <!-- By default, for backward compatibility ON CLUSTER queries ignore CLUSTER grant,
752 however you can change this behaviour by setting this to true -->
753 <on_cluster_queries_require_cluster_grant>true</on_cluster_queries_require_cluster_grant>
754
755 <!-- By default, for backward compatibility "SELECT * FROM system.<table>" doesn't require any grants and can be executed
756 by any user. You can change this behaviour by setting this to true.
757 If it's set to true then this query requires "GRANT SELECT ON system.<table>" just like as for non-system tables.
758 Exceptions: a few system tables ("tables", "columns", "databases", and some constant tables like "one", "contributors")
759 are still accessible for everyone; and if there is a SHOW privilege (e.g. "SHOW USERS") granted the corresponding system
760 table (i.e. "system.users") will be accessible. -->
761 <select_from_system_db_requires_grant>true</select_from_system_db_requires_grant>
762
763 <!-- By default, for backward compatibility "SELECT * FROM information_schema.<table>" doesn't require any grants and can be
764 executed by any user. You can change this behaviour by setting this to true.
765 If it's set to true then this query requires "GRANT SELECT ON information_schema.<table>" just like as for ordinary tables. -->
766 <select_from_information_schema_requires_grant>true</select_from_information_schema_requires_grant>
767
768 <!-- By default, for backward compatibility a settings profile constraint for a specific setting inherit every not set field from
769 previous profile. You can change this behaviour by setting this to true.
770 If it's set to true then if settings profile has a constraint for a specific setting, then this constraint completely cancels all
771 actions of previous constraint (defined in other profiles) for the same specific setting, including fields that are not set by new constraint.
772 It also enables 'changeable_in_readonly' constraint type -->
773 <settings_constraints_replace_previous>true</settings_constraints_replace_previous>
774
775 <!-- By default, for backward compatibility creating table with a specific table engine ignores grant,
776 however you can change this behaviour by setting this to true -->
777 <table_engines_require_grant>false</table_engines_require_grant>
778
779 <!-- Number of seconds since last access a role is stored in the Role Cache -->
780 <role_cache_expiration_time_seconds>600</role_cache_expiration_time_seconds>
781 </access_control_improvements>
782
783 <!-- Default profile of settings. -->
784 <default_profile>default</default_profile>
785
786 <!-- Comma-separated list of prefixes for user-defined settings.
787 The server will allow to set these settings, and retrieve them with the getSetting function.
788 They are also logged in the query_log, similarly to other settings, but have no special effect.
789 The "SQL_" prefix is introduced for compatibility with MySQL - these settings are being set by Tableau.
790 -->
791 <custom_settings_prefixes>SQL_</custom_settings_prefixes>
792
793 <!-- System profile of settings. This settings are used by internal processes (Distributed DDL worker and so on). -->
794 <!-- <system_profile>default</system_profile> -->
795
796 <!-- Buffer profile of settings.
797 This settings are used by Buffer storage to flush data to the underlying table.
798 Default: used from system_profile directive.
799 -->
800 <!-- <buffer_profile>default</buffer_profile> -->
801
802 <!-- Default database. -->
803 <default_database>default</default_database>
804
805 <!-- Server time zone could be set here.
806
807 Time zone is used when converting between String and DateTime types,
808 when printing DateTime in text formats and parsing DateTime from text,
809 it is used in date and time related functions, if specific time zone was not passed as an argument.
810
811 Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.
812 If not specified, system time zone at server startup is used.
813
814 Please note, that server could display time zone alias instead of specified name.
815 Example: Zulu is an alias for UTC.
816 -->
817 <!-- <timezone>UTC</timezone> -->
818
819 <!-- You can specify umask here (see "man umask"). Server will apply it on startup.
820 Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).
821 -->
822 <!-- <umask>022</umask> -->
823
824 <!-- Perform mlockall after startup to lower first queries latency
825 and to prevent clickhouse executable from being paged out under high IO load.
826 Enabling this option is recommended but will lead to increased startup time for up to a few seconds.
827 -->
828 <mlock_executable>true</mlock_executable>
829
830 <!-- Reallocate memory for machine code ("text") using huge pages. Highly experimental. -->
831 <remap_executable>false</remap_executable>
832
833 <![CDATA[
834 Uncomment below in order to use JDBC table engine and function.
835
836 To install and run JDBC bridge in background:
837 * [Debian/Ubuntu]
838 export MVN_URL=https://repo1.maven.org/maven2/com/clickhouse/clickhouse-jdbc-bridge/
839 export PKG_VER=$(curl -sL $MVN_URL/maven-metadata.xml | grep '<release>' | sed -e 's|.*>\(.*\)<.*|\1|')
840 wget https://github.com/ClickHouse/clickhouse-jdbc-bridge/releases/download/v$PKG_VER/clickhouse-jdbc-bridge_$PKG_VER-1_all.deb
841 apt install --no-install-recommends -f ./clickhouse-jdbc-bridge_$PKG_VER-1_all.deb
842 clickhouse-jdbc-bridge &
843
844 * [CentOS/RHEL]
845 export MVN_URL=https://repo1.maven.org/maven2/com/clickhouse/clickhouse-jdbc-bridge/
846 export PKG_VER=$(curl -sL $MVN_URL/maven-metadata.xml | grep '<release>' | sed -e 's|.*>\(.*\)<.*|\1|')
847 wget https://github.com/ClickHouse/clickhouse-jdbc-bridge/releases/download/v$PKG_VER/clickhouse-jdbc-bridge-$PKG_VER-1.noarch.rpm
848 yum localinstall -y clickhouse-jdbc-bridge-$PKG_VER-1.noarch.rpm
849 clickhouse-jdbc-bridge &
850
851 Please refer to https://github.com/ClickHouse/clickhouse-jdbc-bridge#usage for more information.
852 ]]>
853 <!--
854 <jdbc_bridge>
855 <host>127.0.0.1</host>
856 <port>9019</port>
857 </jdbc_bridge>
858 -->
859
860 <!-- Configuration of clusters that could be used in Distributed tables.
861 https://clickhouse.com/docs/en/operations/table_engines/distributed/
862 -->
863 <remote_servers>
864 <!-- Test only shard config for testing distributed storage -->
865 <default>
866 <!-- Inter-server per-cluster secret for Distributed queries
867 default: no secret (no authentication will be performed)
868
869 If set, then Distributed queries will be validated on shards, so at least:
870 - such cluster should exist on the shard,
871 - such cluster should have the same secret.
872
873 And also (and which is more important), the initial_user will
874 be used as current user for the query.
875
876 Right now the protocol is pretty simple, and it only takes into account:
877 - cluster name
878 - query
879
880 Also, it will be nice if the following will be implemented:
881 - source hostname (see interserver_http_host), but then it will depend on DNS,
882 it can use IP address instead, but then you need to get correct on the initiator node.
883 - target hostname / ip address (same notes as for source hostname)
884 - time-based security tokens
885 -->
886 <!-- <secret></secret> -->
887
888 <shard>
889 <!-- Optional. Whether to write data to just one of the replicas. Default: false (write data to all replicas). -->
890 <!-- <internal_replication>false</internal_replication> -->
891 <!-- Optional. Shard weight when writing data. Default: 1. -->
892 <!-- <weight>1</weight> -->
893 <replica>
894 <host>localhost</host>
895 <port>9000</port>
896 <!-- Optional. Priority of the replica for load_balancing. Default: 1 (less value has more priority). -->
897 <!-- <priority>1</priority> -->
898 <!-- Use SSL? Default: no -->
899 <!-- <secure>0</secure> -->
900 </replica>
901 </shard>
902 </default>
903 </remote_servers>
904
905 <!-- The list of hosts allowed to use in URL-related storage engines and table functions.
906 If this section is not present in configuration, all hosts are allowed.
907 -->
908 <!--<remote_url_allow_hosts>-->
909 <!-- Host should be specified exactly as in URL. The name is checked before DNS resolution.
910 Example: "clickhouse.com", "clickhouse.com." and "www.clickhouse.com" are different hosts.
911 If port is explicitly specified in URL, the host:port is checked as a whole.
912 If host specified here without port, any port with this host allowed.
913 "clickhouse.com" -> "clickhouse.com:443", "clickhouse.com:80" etc. is allowed, but "clickhouse.com:80" -> only "clickhouse.com:80" is allowed.
914 If the host is specified as IP address, it is checked as specified in URL. Example: "[2a02:6b8:a::a]".
915 If there are redirects and support for redirects is enabled, every redirect (the Location field) is checked.
916 Host should be specified using the host xml tag:
917 <host>clickhouse.com</host>
918 -->
919
920 <!-- Regular expression can be specified. RE2 engine is used for regexps.
921 Regexps are not aligned: don't forget to add ^ and $. Also don't forget to escape dot (.) metacharacter
922 (forgetting to do so is a common source of error).
923 -->
924 <!--</remote_url_allow_hosts>-->
925
926 <!-- The list of HTTP headers forbidden to use in HTTP-related storage engines and table functions.
927 If this section is not present in configuration, all headers are allowed.
928 -->
929 <!-- <http_forbid_headers>
930 <header>exact_header</header>
931 <header_regexp>(?i)(case_insensitive_header)</header_regexp>
932 </http_forbid_headers> -->
933
934 <!-- If element has 'incl' attribute, then for it's value will be used corresponding substitution from another file.
935 By default, path to file with substitutions is /etc/metrika.xml. It could be changed in config in 'include_from' element.
936 Values for substitutions are specified in /clickhouse/name_of_substitution elements in that file.
937 -->
938
939 <!-- ZooKeeper is used to store metadata about replicas, when using Replicated tables.
940 Optional. If you don't use replicated tables, you could omit that.
941
942 See https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/replication/
943 -->
944
945 <zookeeper>
946 <node>
947 <host>127.0.0.1</host>
948 <port>9181</port>
949 </node>
950 </zookeeper>
951
952 <!-- Substitutions for parameters of replicated tables.
953 Optional. If you don't use replicated tables, you could omit that.
954
955 See https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/replication/#creating-replicated-tables
956 -->
957 <!--
958 <macros>
959 <shard>01</shard>
960 <replica>example01-01-1</replica>
961 </macros>
962 -->
963
964 <!--
965 <default_replica_path>/clickhouse/tables/{database}/{table}</default_replica_path>
966 <default_replica_name>{replica}</default_replica_name>
967 -->
968
969 <!-- Replica group name for database Replicated.
970 The cluster created by Replicated database will consist of replicas in the same group.
971 DDL queries will only wail for the replicas in the same group.
972 Empty by default.
973 -->
974 <!--
975 <replica_group_name><replica_group_name>
976 -->
977
978
979 <!-- Reloading interval for embedded dictionaries, in seconds. Default: 3600. -->
980 <builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>
981
982
983 <!-- Maximum session timeout, in seconds. Default: 3600. -->
984 <max_session_timeout>3600</max_session_timeout>
985
986 <!-- Default session timeout, in seconds. Default: 60. -->
987 <default_session_timeout>60</default_session_timeout>
988
989 <!-- Sending data to Graphite for monitoring. Several sections can be defined. -->
990 <!--
991 interval - send every X second
992 root_path - prefix for keys
993 hostname_in_path - append hostname to root_path (default = true)
994 metrics - send data from table system.metrics
995 events - send data from table system.events
996 asynchronous_metrics - send data from table system.asynchronous_metrics
997 -->
998 <!--
999 <graphite>
1000 <host>localhost</host>
1001 <port>42000</port>
1002 <timeout>0.1</timeout>
1003 <interval>60</interval>
1004 <root_path>one_min</root_path>
1005 <hostname_in_path>true</hostname_in_path>
1006
1007 <metrics>true</metrics>
1008 <events>true</events>
1009 <events_cumulative>false</events_cumulative>
1010 <asynchronous_metrics>true</asynchronous_metrics>
1011 </graphite>
1012 <graphite>
1013 <host>localhost</host>
1014 <port>42000</port>
1015 <timeout>0.1</timeout>
1016 <interval>1</interval>
1017 <root_path>one_sec</root_path>
1018
1019 <metrics>true</metrics>
1020 <events>true</events>
1021 <events_cumulative>false</events_cumulative>
1022 <asynchronous_metrics>false</asynchronous_metrics>
1023 </graphite>
1024 -->
1025
1026 <!-- Serve endpoint for Prometheus monitoring. -->
1027 <!--
1028 endpoint - mertics path (relative to root, statring with "/")
1029 port - port to setup server. If not defined or 0 than http_port used
1030 metrics - send data from table system.metrics
1031 events - send data from table system.events
1032 asynchronous_metrics - send data from table system.asynchronous_metrics
1033 -->
1034 <!--
1035 <prometheus>
1036 <endpoint>/metrics</endpoint>
1037 <port>9363</port>
1038
1039 <metrics>true</metrics>
1040 <events>true</events>
1041 <asynchronous_metrics>true</asynchronous_metrics>
1042 </prometheus>
1043 -->
1044
1045 <!-- Query log. Used only for queries with setting log_queries = 1. -->
1046 <query_log>
1047 <!-- What table to insert data. If table is not exist, it will be created.
1048 When query log structure is changed after system update,
1049 then old table will be renamed and new table will be created automatically.
1050 -->
1051 <database>system</database>
1052 <table>query_log</table>
1053 <!--
1054 PARTITION BY expr: https://clickhouse.com/docs/en/table_engines/mergetree-family/custom_partitioning_key/
1055 Example:
1056 event_date
1057 toMonday(event_date)
1058 toYYYYMM(event_date)
1059 toStartOfHour(event_time)
1060 -->
1061 <partition_by>toYYYYMM(event_date)</partition_by>
1062 <!--
1063 Table TTL specification: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree/#mergetree-table-ttl
1064 Example:
1065 event_date + INTERVAL 1 WEEK
1066 event_date + INTERVAL 7 DAY DELETE
1067 event_date + INTERVAL 2 WEEK TO DISK 'bbb'
1068
1069 <ttl>event_date + INTERVAL 30 DAY DELETE</ttl>
1070 -->
1071
1072 <!--
1073 ORDER BY expr: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by
1074 Example:
1075 event_date, event_time
1076 event_date, type, query_id
1077 event_date, event_time, initial_query_id
1078
1079 <order_by>event_date, event_time, initial_query_id</order_by>
1080 -->
1081
1082 <!-- Instead of partition_by, you can provide full engine expression (starting with ENGINE = ) with parameters,
1083 Example: <engine>ENGINE = MergeTree PARTITION BY toYYYYMM(event_date) ORDER BY (event_date, event_time) SETTINGS index_granularity = 1024</engine>
1084 -->
1085
1086 <!-- Interval of flushing data. -->
1087 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1088 <!-- Maximal size in lines for the logs. When non-flushed logs amount reaches max_size, logs dumped to the disk. -->
1089 <max_size_rows>1048576</max_size_rows>
1090 <!-- Pre-allocated size in lines for the logs. -->
1091 <reserved_size_rows>8192</reserved_size_rows>
1092 <!-- Lines amount threshold, reaching it launches flushing logs to the disk in background. -->
1093 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1094 <!-- Indication whether logs should be dumped to the disk in case of a crash -->
1095 <flush_on_crash>false</flush_on_crash>
1096
1097 <!-- example of using a different storage policy for a system table -->
1098 <!-- storage_policy>local_ssd</storage_policy -->
1099 </query_log>
1100
1101 <!-- Trace log. Stores stack traces collected by query profilers.
1102 See query_profiler_real_time_period_ns and query_profiler_cpu_time_period_ns settings. -->
1103 <trace_log>
1104 <database>system</database>
1105 <table>trace_log</table>
1106
1107 <partition_by>toYYYYMM(event_date)</partition_by>
1108 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1109 <max_size_rows>1048576</max_size_rows>
1110 <reserved_size_rows>8192</reserved_size_rows>
1111 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1112 <!-- Indication whether logs should be dumped to the disk in case of a crash -->
1113 <flush_on_crash>false</flush_on_crash>
1114 </trace_log>
1115
1116 <!-- Query thread log. Has information about all threads participated in query execution.
1117 Used only for queries with setting log_query_threads = 1. -->
1118 <query_thread_log>
1119 <database>system</database>
1120 <table>query_thread_log</table>
1121 <partition_by>toYYYYMM(event_date)</partition_by>
1122 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1123 <max_size_rows>1048576</max_size_rows>
1124 <reserved_size_rows>8192</reserved_size_rows>
1125 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1126 <flush_on_crash>false</flush_on_crash>
1127 </query_thread_log>
1128
1129 <!-- Query views log. Has information about all dependent views associated with a query.
1130 Used only for queries with setting log_query_views = 1. -->
1131 <query_views_log>
1132 <database>system</database>
1133 <table>query_views_log</table>
1134 <partition_by>toYYYYMM(event_date)</partition_by>
1135 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1136 </query_views_log>
1137
1138 <!-- Part log contains information about all actions with parts in MergeTree tables (creation, deletion, merges, downloads). -->
1139 <part_log>
1140 <database>system</database>
1141 <table>part_log</table>
1142 <partition_by>toYYYYMM(event_date)</partition_by>
1143 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1144 <max_size_rows>1048576</max_size_rows>
1145 <reserved_size_rows>8192</reserved_size_rows>
1146 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1147 <flush_on_crash>false</flush_on_crash>
1148 </part_log>
1149
1150 <!-- Text log contains all information from usual server log but stores it in structured and efficient way.
1151 The level of the messages that goes to the table can be limited (<level>), if not specified all messages will go to the table.
1152 -->
1153 <text_log>
1154 <database>system</database>
1155 <table>text_log</table>
1156 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1157 <max_size_rows>1048576</max_size_rows>
1158 <reserved_size_rows>8192</reserved_size_rows>
1159 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1160 <flush_on_crash>false</flush_on_crash>
1161 <level>trace</level>
1162 </text_log>
1163
1164 <!-- Metric log contains rows with current values of ProfileEvents, CurrentMetrics collected with "collect_interval_milliseconds" interval. -->
1165 <metric_log>
1166 <database>system</database>
1167 <table>metric_log</table>
1168 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1169 <max_size_rows>1048576</max_size_rows>
1170 <reserved_size_rows>8192</reserved_size_rows>
1171 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1172 <collect_interval_milliseconds>1000</collect_interval_milliseconds>
1173 <flush_on_crash>false</flush_on_crash>
1174 </metric_log>
1175
1176 <!-- Error log contains rows with current values of errors collected with "collect_interval_milliseconds" interval. -->
1177 <error_log>
1178 <database>system</database>
1179 <table>error_log</table>
1180 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1181 <max_size_rows>1048576</max_size_rows>
1182 <reserved_size_rows>8192</reserved_size_rows>
1183 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1184 <collect_interval_milliseconds>1000</collect_interval_milliseconds>
1185 <flush_on_crash>false</flush_on_crash>
1186 </error_log>
1187
1188 <!-- Query metric log contains rows Contains history of memory and metric values from table system.events for individual queries, periodically flushed to disk
1189 every "collect_interval_milliseconds" interval-->
1190 <query_metric_log>
1191 <database>system</database>
1192 <table>query_metric_log</table>
1193 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1194 <max_size_rows>1048576</max_size_rows>
1195 <reserved_size_rows>8192</reserved_size_rows>
1196 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1197 <collect_interval_milliseconds>1000</collect_interval_milliseconds>
1198 <flush_on_crash>false</flush_on_crash>
1199 </query_metric_log>
1200
1201 <!--
1202 Asynchronous metric log contains values of metrics from
1203 system.asynchronous_metrics.
1204 -->
1205 <asynchronous_metric_log>
1206 <database>system</database>
1207 <table>asynchronous_metric_log</table>
1208 <flush_interval_milliseconds>7000</flush_interval_milliseconds>
1209 <max_size_rows>1048576</max_size_rows>
1210 <reserved_size_rows>8192</reserved_size_rows>
1211 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1212 <flush_on_crash>false</flush_on_crash>
1213 </asynchronous_metric_log>
1214
1215 <!--
1216 OpenTelemetry log contains OpenTelemetry trace spans.
1217 -->
1218 <opentelemetry_span_log>
1219 <!--
1220 The default table creation code is insufficient, this <engine> spec
1221 is a workaround. There is no 'event_time' for this log, but two times,
1222 start and finish. It is sorted by finish time, to avoid inserting
1223 data too far away in the past (probably we can sometimes insert a span
1224 that is seconds earlier than the last span in the table, due to a race
1225 between several spans inserted in parallel). This gives the spans a
1226 global order that we can use to e.g. retry insertion into some external
1227 system.
1228 -->
1229 <engine>
1230 engine MergeTree
1231 partition by toYYYYMM(finish_date)
1232 order by (finish_date, finish_time_us, trace_id)
1233 </engine>
1234 <database>system</database>
1235 <table>opentelemetry_span_log</table>
1236 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1237 <max_size_rows>1048576</max_size_rows>
1238 <reserved_size_rows>8192</reserved_size_rows>
1239 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1240 <flush_on_crash>false</flush_on_crash>
1241 </opentelemetry_span_log>
1242
1243
1244 <!-- Crash log. Stores stack traces for fatal errors.
1245 This table is normally empty. -->
1246 <crash_log>
1247 <database>system</database>
1248 <table>crash_log</table>
1249
1250 <partition_by />
1251 <flush_interval_milliseconds>1000</flush_interval_milliseconds>
1252 <max_size_rows>1024</max_size_rows>
1253 <reserved_size_rows>1024</reserved_size_rows>
1254 <buffer_size_rows_flush_threshold>512</buffer_size_rows_flush_threshold>
1255 <flush_on_crash>true</flush_on_crash>
1256 </crash_log>
1257
1258 <!-- Session log. Stores user log in (successful or not) and log out events.
1259
1260 Note: session log has known security issues and should not be used in production.
1261 -->
1262 <!-- <session_log>
1263 <database>system</database>
1264 <table>session_log</table>
1265
1266 <partition_by>toYYYYMM(event_date)</partition_by>
1267 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1268 <max_size_rows>1048576</max_size_rows>
1269 <reserved_size_rows>8192</reserved_size_rows>
1270 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1271 <flush_on_crash>false</flush_on_crash>
1272 </session_log> -->
1273
1274 <!-- Profiling on Processors level. -->
1275 <processors_profile_log>
1276 <database>system</database>
1277 <table>processors_profile_log</table>
1278
1279 <partition_by>toYYYYMM(event_date)</partition_by>
1280 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1281 <max_size_rows>1048576</max_size_rows>
1282 <reserved_size_rows>8192</reserved_size_rows>
1283 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1284 <flush_on_crash>false</flush_on_crash>
1285 </processors_profile_log>
1286
1287 <!-- Log of asynchronous inserts. It allows to check status
1288 of insert query in fire-and-forget mode.
1289 -->
1290 <asynchronous_insert_log>
1291 <database>system</database>
1292 <table>asynchronous_insert_log</table>
1293
1294 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1295 <max_size_rows>1048576</max_size_rows>
1296 <reserved_size_rows>8192</reserved_size_rows>
1297 <buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
1298 <flush_on_crash>false</flush_on_crash>
1299 <partition_by>event_date</partition_by>
1300 <ttl>event_date + INTERVAL 3 DAY</ttl>
1301 </asynchronous_insert_log>
1302
1303 <!-- Backup/restore log.
1304 -->
1305 <backup_log>
1306 <database>system</database>
1307 <table>backup_log</table>
1308 <partition_by>toYYYYMM(event_date)</partition_by>
1309 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1310 </backup_log>
1311
1312 <!-- Storage S3Queue log.
1313 -->
1314 <s3queue_log>
1315 <database>system</database>
1316 <table>s3queue_log</table>
1317 <partition_by>toYYYYMM(event_date)</partition_by>
1318 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1319 </s3queue_log>
1320
1321 <!-- Blob storage object operations log.
1322 -->
1323 <blob_storage_log>
1324 <database>system</database>
1325 <table>blob_storage_log</table>
1326 <partition_by>toYYYYMM(event_date)</partition_by>
1327 <flush_interval_milliseconds>7500</flush_interval_milliseconds>
1328 <ttl>event_date + INTERVAL 30 DAY</ttl>
1329 </blob_storage_log>
1330
1331 <!-- Configure system.dashboards for dashboard.html.
1332
1333 Could have any query parameters, for which there will be an input on the page.
1334 For instance an example from comments have the following:
1335 - seconds
1336 - rounding
1337
1338 NOTE: All default dashboards will be overwritten if it was set here. -->
1339 <!-- Here is an example without merge() function, to make it work with readonly user -->
1340 <!--
1341 <dashboards>
1342 <dashboard>
1343 <dashboard>Overview</dashboard>
1344 <title>Queries/second</title>
1345 <query>
1346 SELECT toStartOfInterval(event_time, INTERVAL {rounding:UInt32} SECOND)::INT AS t, avg(ProfileEvent_Query)
1347 FROM system.metric_log
1348 WHERE event_date >= toDate(now() - {seconds:UInt32}) AND event_time >= now() - {seconds:UInt32}
1349 GROUP BY t
1350 ORDER BY t WITH FILL STEP {rounding:UInt32}
1351 </query>
1352 </dashboard>
1353 </dashboards>
1354 -->
1355
1356 <!-- <top_level_domains_path>/var/lib/clickhouse/top_level_domains/</top_level_domains_path> -->
1357 <!-- Custom TLD lists.
1358 Format: <name>/path/to/file</name>
1359
1360 Changes will not be applied w/o server restart.
1361 Path to the list is under top_level_domains_path (see above).
1362 -->
1363 <top_level_domains_lists>
1364 <!--
1365 <public_suffix_list>/path/to/public_suffix_list.dat</public_suffix_list>
1366 -->
1367 </top_level_domains_lists>
1368
1369 <!-- Configuration of external dictionaries. See:
1370 https://clickhouse.com/docs/en/sql-reference/dictionaries/external-dictionaries/external-dicts
1371 -->
1372 <dictionaries_config>*_dictionary.*ml</dictionaries_config>
1373
1374 <!-- Load dictionaries lazily, i.e. a dictionary will be loaded when it's used for the first time.
1375 "false" means ClickHouse will start loading dictionaries immediately at startup.
1376 -->
1377 <dictionaries_lazy_load>true</dictionaries_lazy_load>
1378
1379 <!-- Wait at startup until all the dictionaries finish their loading (successfully or not)
1380 before receiving any connections. Affects dictionaries only if "dictionaries_lazy_load" is false.
1381 Setting this to false can make ClickHouse start faster, however some queries can be executed slower.
1382 -->
1383 <wait_dictionaries_load_at_startup>true</wait_dictionaries_load_at_startup>
1384
1385 <!-- Configuration of user defined executable functions -->
1386 <user_defined_executable_functions_config>*_function.*ml</user_defined_executable_functions_config>
1387
1388 <!-- Path in ZooKeeper to store user-defined SQL functions created by the command CREATE FUNCTION.
1389 If not specified they will be stored locally. -->
1390 <!-- <user_defined_zookeeper_path>/clickhouse/user_defined</user_defined_zookeeper_path> -->
1391
1392 <!-- Path in ZooKeeper to store workload and resource created by the command CREATE WORKLOAD and CREATE REESOURCE.
1393 If not specified they will be stored locally. -->
1394 <!-- <workload_zookeeper_path>/clickhouse/workload/definitions.sql</workload_zookeeper_path> -->
1395
1396 <!-- Uncomment if you want data to be compressed 30-100% better.
1397 Don't do that if you just started using ClickHouse.
1398 -->
1399 <!--
1400 <compression>
1401 <!- - Set of variants. Checked in order. Last matching case wins. If nothing matches, lz4 will be used. - ->
1402 <case>
1403
1404 <!- - Conditions. All must be satisfied. Some conditions may be omitted. - ->
1405 <min_part_size>10000000000</min_part_size> <!- - Min part size in bytes. - ->
1406 <min_part_size_ratio>0.01</min_part_size_ratio> <!- - Min size of part relative to whole table size. - ->
1407
1408 <!- - What compression method to use. - ->
1409 <method>zstd</method>
1410 </case>
1411 </compression>
1412 -->
1413
1414 <!-- Configuration of encryption. The server executes a command to
1415 obtain an encryption key at startup if such a command is
1416 defined, or encryption codecs will be disabled otherwise. The
1417 command is executed through /bin/sh and is expected to write
1418 a Base64-encoded key to the stdout. -->
1419 <encryption_codecs>
1420 <!-- aes_128_gcm_siv -->
1421 <!-- Example of getting hex key from env -->
1422 <!-- the code should use this key and throw an exception if its length is not 16 bytes -->
1423 <!--key_hex from_env="..."></key_hex -->
1424
1425 <!-- Example of multiple hex keys. They can be imported from env or be written down in config-->
1426 <!-- the code should use these keys and throw an exception if their length is not 16 bytes -->
1427 <!-- key_hex id="0">...</key_hex -->
1428 <!-- key_hex id="1" from_env=".."></key_hex -->
1429 <!-- key_hex id="2">...</key_hex -->
1430 <!-- current_key_id>2</current_key_id -->
1431
1432 <!-- Example of getting hex key from config -->
1433 <!-- the code should use this key and throw an exception if its length is not 16 bytes -->
1434 <!-- key>...</key -->
1435
1436 <!-- example of adding nonce -->
1437 <!-- nonce>...</nonce -->
1438
1439 <!-- /aes_128_gcm_siv -->
1440 </encryption_codecs>
1441
1442 <!-- Allow to execute distributed DDL queries (CREATE, DROP, ALTER, RENAME) on cluster.
1443 Works only if ZooKeeper is enabled. Comment it if such functionality isn't required. -->
1444 <distributed_ddl>
1445 <!-- Path in ZooKeeper to queue with DDL queries -->
1446 <path>/clickhouse/task_queue/ddl</path>
1447 <!-- Path in ZooKeeper to store running DDL hosts -->
1448 <replicas_path>/clickhouse/task_queue/replicas</replicas_path>
1449
1450 <!-- Settings from this profile will be used to execute DDL queries -->
1451 <!-- <profile>default</profile> -->
1452
1453 <!-- Controls how much ON CLUSTER queries can be run simultaneously. -->
1454 <!-- <pool_size>1</pool_size> -->
1455
1456 <!--
1457 Cleanup settings (active tasks will not be removed)
1458 -->
1459
1460 <!-- Controls task TTL (default 1 week) -->
1461 <!-- <task_max_lifetime>604800</task_max_lifetime> -->
1462
1463 <!-- Controls how often cleanup should be performed (in seconds) -->
1464 <!-- <cleanup_delay_period>60</cleanup_delay_period> -->
1465
1466 <!-- Controls how many tasks could be in the queue -->
1467 <!-- <max_tasks_in_queue>1000</max_tasks_in_queue> -->
1468
1469 <!-- Host name of the current node. If specified, will only compare and not resolve hostnames inside the DDL tasks -->
1470 <!-- <host_name>replica</host_name> -->
1471 </distributed_ddl>
1472
1473 <!-- Used to regulate how resources are utilized and shared between merges, mutations and other workloads.
1474 Specified value is used as `workload` setting value for background merge or mutation.
1475 -->
1476 <!--
1477 <merge_workload>merges_and_mutations</merge_workload>
1478 <mutation_workload>merges_and_mutations</mutation_workload>
1479 -->
1480
1481 <!-- Settings to fine-tune MergeTree tables. See documentation in source code, in MergeTreeSettings.h -->
1482 <!--
1483 <merge_tree>
1484 <max_suspicious_broken_parts>5</max_suspicious_broken_parts>
1485 </merge_tree>
1486 -->
1487
1488 <!-- Settings to fine-tune ReplicatedMergeTree tables. See documentation in source code, in MergeTreeSettings.h -->
1489 <!--
1490 <replicated_merge_tree>
1491 <max_replicated_fetches_network_bandwidth>1000000000</max_replicated_fetches_network_bandwidth>
1492 </replicated_merge_tree>
1493 -->
1494
1495 <!-- Settings to fine-tune Distributed tables. See documentation in source code, in DistributedSettings.h -->
1496 <!--
1497 <distributed>
1498 <flush_on_detach>false</flush_on_detach>
1499 </distributed>
1500 -->
1501
1502 <!-- Protection from accidental DROP.
1503 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.
1504 If you want do delete one table and don't want to change clickhouse-server config, you could create special file <clickhouse-path>/flags/force_drop_table and make DROP once.
1505 By default max_table_size_to_drop is 50GB; max_table_size_to_drop=0 allows to DROP any tables.
1506 The same for max_partition_size_to_drop.
1507 Uncomment to disable protection.
1508 -->
1509 <!-- <max_table_size_to_drop>0</max_table_size_to_drop> -->
1510 <!-- <max_partition_size_to_drop>0</max_partition_size_to_drop> -->
1511
1512 <!-- Example of parameters for GraphiteMergeTree table engine -->
1513 <graphite_rollup_example>
1514 <pattern>
1515 <regexp>click_cost</regexp>
1516 <function>any</function>
1517 <retention>
1518 <age>0</age>
1519 <precision>3600</precision>
1520 </retention>
1521 <retention>
1522 <age>86400</age>
1523 <precision>60</precision>
1524 </retention>
1525 </pattern>
1526 <default>
1527 <function>max</function>
1528 <retention>
1529 <age>0</age>
1530 <precision>60</precision>
1531 </retention>
1532 <retention>
1533 <age>3600</age>
1534 <precision>300</precision>
1535 </retention>
1536 <retention>
1537 <age>86400</age>
1538 <precision>3600</precision>
1539 </retention>
1540 </default>
1541 </graphite_rollup_example>
1542
1543 <!-- Directory in <clickhouse-path> containing schema files for various input formats.
1544 The directory will be created if it doesn't exist.
1545 -->
1546 <format_schema_path>/var/lib/clickhouse/format_schemas/</format_schema_path>
1547
1548 <!-- Directory containing the proto files for the well-known Protobuf types.
1549 -->
1550 <google_protos_path>/usr/share/clickhouse/protos/</google_protos_path>
1551
1552 <!-- Default query masking rules, matching lines would be replaced with something else in the logs
1553 (both text logs and system.query_log).
1554 name - name for the rule (optional)
1555 regexp - RE2 compatible regular expression (mandatory)
1556 replace - substitution string for sensitive data (optional, by default - six asterisks)
1557 <query_masking_rules>
1558 <rule>
1559 <name>hide encrypt/decrypt arguments</name>
1560 <regexp>((?:aes_)?(?:encrypt|decrypt)(?:_mysql)?)\s*\(\s*(?:'(?:\\'|.)+'|.*?)\s*\)</regexp>
1561 <replace>\1(???)</replace>
1562 </rule>
1563 </query_masking_rules> -->
1564
1565 <!-- Uncomment to use custom http handlers.
1566
1567 rules are checked from top to bottom, first match runs the handler
1568 url - to match request URL, you can use 'regex:' prefix to use regex match(optional)
1569 empty_query_string - check that there is no query string in the URL
1570 methods - to match request method, you can use commas to separate multiple method matches(optional)
1571 headers - to match request headers, match each child element(child element name is header name), you can use 'regex:' prefix to use regex match(optional)
1572
1573 handler is request handler
1574 type - supported types: static, dynamic_query_handler, predefined_query_handler, redirect
1575 query - use with predefined_query_handler type, executes query when the handler is called
1576 query_param_name - use with dynamic_query_handler type, extracts and executes the value corresponding to the <query_param_name> value in HTTP request params
1577 status - use with static type, response status code
1578 content_type - use with static type, response content-type
1579 response_content - use with static type, Response content sent to client, when using the prefix 'file://' or 'config://', find the content from the file or configuration send to client.
1580 url - a location for redirect
1581
1582 Along with a list of rules, you can specify <defaults/> which means - enable all the default handlers.
1583
1584 <http_handlers>
1585 <rule>
1586 <url>/</url>
1587 <methods>POST,GET</methods>
1588 <headers><pragma>no-cache</pragma></headers>
1589 <handler>
1590 <type>dynamic_query_handler</type>
1591 <query_param_name>query</query_param_name>
1592 </handler>
1593 </rule>
1594
1595 <rule>
1596 <url>/predefined_query</url>
1597 <methods>POST,GET</methods>
1598 <handler>
1599 <type>predefined_query_handler</type>
1600 <query>SELECT * FROM system.settings</query>
1601 </handler>
1602 </rule>
1603
1604 <rule>
1605 <handler>
1606 <type>static</type>
1607 <status>200</status>
1608 <content_type>text/plain; charset=UTF-8</content_type>
1609 <response_content>config://http_server_default_response</response_content>
1610 </handler>
1611 </rule>
1612 </http_handlers>
1613 -->
1614
1615 <send_crash_reports>
1616 <!-- Changing <enabled> to true allows sending crash reports to -->
1617 <!-- the ClickHouse core developers team via Sentry https://sentry.io -->
1618 <!-- Doing so at least in pre-production environments is highly appreciated -->
1619 <enabled>false</enabled>
1620 <!-- Change <anonymize> to true if you don't feel comfortable attaching the server hostname to the crash report -->
1621 <anonymize>false</anonymize>
1622 <!-- Default endpoint should be changed to different Sentry DSN only if you have -->
1623 <!-- some in-house engineers or hired consultants who're going to debug ClickHouse issues for you -->
1624 <endpoint>https://[email protected]/5226277</endpoint>
1625 <!-- Send LOGICAL_ERRORs as well (default: false) -->
1626 <send_logical_errors>false</send_logical_errors>
1627 </send_crash_reports>
1628
1629 <!-- Uncomment to disable ClickHouse internal DNS caching. -->
1630 <!-- <disable_internal_dns_cache>1</disable_internal_dns_cache> -->
1631
1632 <!-- You can also configure rocksdb like this: -->
1633 <!-- Full list of options:
1634 - options:
1635 - https://github.com/facebook/rocksdb/blob/4b013dcbed2df84fde3901d7655b9b91c557454d/include/rocksdb/options.h#L1452
1636 - column_family_options:
1637 - https://github.com/facebook/rocksdb/blob/4b013dcbed2df84fde3901d7655b9b91c557454d/include/rocksdb/options.h#L66
1638 - block_based_table_options:
1639 - https://github.com/facebook/rocksdb/blob/4b013dcbed2df84fde3901d7655b9b91c557454d/table/block_based/block_based_table_factory.cc#L228
1640 - https://github.com/facebook/rocksdb/blob/4b013dcbed2df84fde3901d7655b9b91c557454d/include/rocksdb/table.h#L129
1641 -->
1642 <!--
1643 <rocksdb>
1644 <options>
1645 <max_background_jobs>8</max_background_jobs>
1646 <info_log_level>DEBUG_LEVEL</info_log_level>
1647 </options>
1648 <column_family_options>
1649 <num_levels>2</num_levels>
1650 </column_family_options>
1651 <block_based_table_options>
1652 <block_size>1024</block_size>
1653 </block_based_table_options>
1654 <tables>
1655 <table>
1656 <name>TABLE</name>
1657 <options>
1658 <max_background_jobs>8</max_background_jobs>
1659 </options>
1660 <column_family_options>
1661 <num_levels>2</num_levels>
1662 </column_family_options>
1663 <block_based_table_options>
1664 <block_size>1024</block_size>
1665 </block_based_table_options>
1666 </table>
1667 </tables>
1668 </rocksdb>
1669 -->
1670
1671 <!-- <kafka> -->
1672 <!-- Global configuration properties -->
1673 <!--
1674 NOTE: statistics should be consumed, otherwise it creates too much
1675 entries in the queue, that leads to memory leak and slow shutdown.
1676 default value: 0
1677 <statistics_interval_ms>3000</statistics_interval_ms>
1678 -->
1679
1680 <!-- Topic configuration properties -->
1681 <!--
1682 <kafka_topic>
1683 <name>football</name>
1684 <request_timeout_ms>6000</request_timeout_ms>
1685 </kafka_topic>
1686 -->
1687
1688 <!-- Producer configuration -->
1689 <!--
1690 <producer>
1691 <compression_codec>gzip</compression_codec>
1692 <kafka_topic>
1693 <name>football</name>
1694 <request_timeout_ms>6000</request_timeout_ms>
1695 </kafka_topic>
1696 </producer>
1697 -->
1698
1699 <!-- Consumer configuration -->
1700 <!--
1701 <consumer>
1702 <enable_auto_commit>true</enable_auto_commit>
1703 </consumer>
1704 -->
1705 <!-- </kafka> -->
1706
1707 <backups>
1708 <allowed_path>backups</allowed_path>
1709
1710 <!-- If the BACKUP command fails and this setting is true then the files
1711 copied before the failure will be removed automatically.
1712 -->
1713 <remove_backup_files_after_failure>true</remove_backup_files_after_failure>
1714 </backups>
1715
1716 <!-- This allows to disable exposing addresses in stack traces for security reasons.
1717 Please be aware that it does not improve security much, but makes debugging much harder.
1718 The addresses that are small offsets from zero will be displayed nevertheless to show nullptr dereferences.
1719 Regardless of this configuration, the addresses are visible in the system.stack_trace and system.trace_log tables
1720 if the user has access to these tables.
1721 I don't recommend to change this setting.
1722 <show_addresses_in_stack_traces>false</show_addresses_in_stack_traces>
1723 -->
1724
1725 <!-- On Linux systems this can control the behavior of OOM killer.
1726 <oom_score>-1000</oom_score>
1727 -->
1728
1729 <!-- Delay (in seconds) to wait for unfinished queries before force exit -->
1730 <!-- <shutdown_wait_unfinished>5</shutdown_wait_unfinished> -->
1731
1732 <!-- If set true ClickHouse will wait for running queries finish before shutdown. -->
1733 <!-- <shutdown_wait_unfinished_queries>false</shutdown_wait_unfinished_queries> -->
1734 </clickhouse>