mirror of
https://github.com/20kaushik02/real-time-traffic-analysis-clickhouse.git
synced 2026-01-25 08:04:04 +00:00
Local docker containers demo config
This commit is contained in:
24
node1-config/config.xml
Normal file
24
node1-config/config.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<clickhouse>
|
||||
<logger>
|
||||
<level>debug</level>
|
||||
<log>/var/log/clickhouse-server/clickhouse-server.log</log>
|
||||
<errorlog>/var/log/clickhouse-server/clickhouse-server.err.log</errorlog>
|
||||
<size>1000M</size>
|
||||
<count>3</count>
|
||||
</logger>
|
||||
<display_name>cluster_1S_2R node 1</display_name>
|
||||
<listen_host>0.0.0.0</listen_host>
|
||||
<http_port>8123</http_port>
|
||||
<tcp_port>9000</tcp_port>
|
||||
<!-- Maximum connections and settings -->
|
||||
<max_connections>4096</max_connections>
|
||||
<keep_alive_timeout>3</keep_alive_timeout>
|
||||
<max_concurrent_queries>100</max_concurrent_queries>
|
||||
|
||||
|
||||
<!-- Additional configuration files can be included -->
|
||||
<include_from>/etc/clickhouse-server/config.d/macros.xml</include_from>
|
||||
<include_from>/etc/clickhouse-server/config.d/remote-servers.xml</include_from>
|
||||
<include_from>/etc/clickhouse-server/config.d/use-keeper.xml</include_from>
|
||||
<!-- <include_from>/etc/clickhouse-server/config.d/keeper-config.xml</include_from> -->
|
||||
</clickhouse>
|
||||
7
node1-config/macros.xml
Normal file
7
node1-config/macros.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<clickhouse>
|
||||
<macros>
|
||||
<shard>01</shard>
|
||||
<replica>01</replica>
|
||||
<cluster>cluster_1S_2R</cluster>
|
||||
</macros>
|
||||
</clickhouse>
|
||||
18
node1-config/remote-servers.xml
Normal file
18
node1-config/remote-servers.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<clickhouse>
|
||||
<remote_servers replace="true">
|
||||
<cluster_1S_2R>
|
||||
<secret>mysecretphrase</secret>
|
||||
<shard>
|
||||
<internal_replication>true</internal_replication>
|
||||
<replica>
|
||||
<host>clickhouse-server1</host>
|
||||
<port>9000</port>
|
||||
</replica>
|
||||
<replica>
|
||||
<host>clickhouse-server2</host>
|
||||
<port>9000</port>
|
||||
</replica>
|
||||
</shard>
|
||||
</cluster_1S_2R>
|
||||
</remote_servers>
|
||||
</clickhouse>
|
||||
17
node1-config/use-keeper.xml
Normal file
17
node1-config/use-keeper.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<clickhouse>
|
||||
<zookeeper>
|
||||
<!-- where are the ZK nodes -->
|
||||
<node>
|
||||
<host>clickhouse-keeper1</host>
|
||||
<port>9181</port>
|
||||
</node>
|
||||
<node>
|
||||
<host>clickhouse-keeper2</host>
|
||||
<port>9181</port>
|
||||
</node>
|
||||
<node>
|
||||
<host>clickhouse-keeper3</host>
|
||||
<port>9181</port>
|
||||
</node>
|
||||
</zookeeper>
|
||||
</clickhouse>
|
||||
Reference in New Issue
Block a user