-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.xml
74 lines (61 loc) · 2.32 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0"?>
<clickhouse>
<listen_host>localhost</listen_host>
<path>/data/instances/ch1/</path>
<tcp_port>9000</tcp_port>
<http_port>8123</http_port>
<interserver_http_port>9009</interserver_http_port>
<users_config>users.xml</users_config>
<access_control_path>access</access_control_path>
<logger>
<level>trace</level>
<console>true</console>
</logger>
<query_log>
<database>system</database>
<table>query_log</table>
<engine>Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + INTERVAL 30 day</engine>
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
</query_log>
<text_log>
<database>system</database>
<table>text_log</table>
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
<max_size_rows>1048576</max_size_rows>
<reserved_size_rows>8192</reserved_size_rows>
<buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
<flush_on_crash>false</flush_on_crash>
</text_log>
<!-- https://docs.google.com/presentation/d/17WMonmZLGSTfsQulgCPBAHk9roI0NcO0DLM9ArqrQqU/ -->
<!-- Configure zookeepers -->
<keeper_server remove="remove">
<!-- Configure zookeepers -->
<tcp_port>9181</tcp_port> <!-- how to reach zookeeper from clickhouse-server -->
<server_id>1</server_id>
<!-- Other servers in the ensemble and how to connect to them -->
<raft_configuration>
<server>
<id>1</id>
<hostname>localhost</hostname>
<port>9234</port> <!-- how zookeepers talk to each other -->
</server>
<!-- <server> -->
<!-- ... -->
<!-- </server> -->
</raft_configuration>
</keeper_server>
<!-- Tell clickhouse-server to which zookeeper it should connect. -->
<!-- This would include all servers in "raft_configuration" in "keeper_server". -->
<zookeeper remove="remove">
<node>
<host>localhost</host>
<port>9181</port>
</node>
<!-- <node> -->
<!-- ... -->
<!-- </node> -->
</zookeeper>
<distributed_ddl>
<path>/clickhouse/task_queue/ddl</path>
</distributed_ddl>
</clickhouse>