Updated clickhouse cluster configuration

This commit is contained in:
Luca Deri 2023-01-17 13:33:52 +01:00
parent a1b9c31e6d
commit ef19bdf442
10 changed files with 88 additions and 34 deletions

View file

@ -1,3 +1,4 @@
<?xml version="1.0" ?>
<clickhouse>
<remote_servers>
<ntop_cluster>

View file

@ -0,0 +1,40 @@
<clickhouse>
<keeper_server>
<tcp_port>2181</tcp_port>
<server_id>1</server_id>
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
<coordination_settings>
<operation_timeout_ms>10000</operation_timeout_ms>
<session_timeout_ms>30000</session_timeout_ms>
<raft_logs_level>warning</raft_logs_level>
<rotate_log_storage_interval>10000</rotate_log_storage_interval>
</coordination_settings>
<raft_configuration>
<server>
<id>1</id>
<hostname>192.168.2.92</hostname>
<port>9444</port>
</server>
<server>
<id>2</id>
<hostname>192.168.2.93</hostname>
<port>9444</port>
</server>
</raft_configuration>
</keeper_server>
<zookeeper>
<node>
<host>localhost</host>
<port>2181</port>
</node>
</zookeeper>
<distributed_ddl>
<path>/clickhouse/ntop_cluster/task_queue/ddl</path>
</distributed_ddl>
</clickhouse>

View file

@ -1,7 +1,8 @@
<?xml version="1.0" ?>
<clickhouse>
<macros>
<cluster>ntop_cluster</cluster>
<replica>replica1</replica>
<shard>1</shard>
<replica>clickhouse1</replica>
</macros>
</clickhouse>

View file

@ -1,15 +0,0 @@
<clickhouse>
<zookeeper>
<node>
<host>192.168.2.221</host>
<port>2181</port>
</node>
<session_timeout_ms>30000</session_timeout_ms>
<operation_timeout_ms>10000</operation_timeout_ms>
<!-- <root>/path/to/zookeeper/node</root> -->
<!-- <identity>user:password</identity> -->
</zookeeper>
<distributed_ddl>
<path>/clickhouse/task_queue/ddl</path>
</distributed_ddl>
</clickhouse>

View file

@ -1,3 +1,4 @@
<?xml version="1.0" ?>
<clickhouse>
<remote_servers>
<ntop_cluster>

View file

@ -0,0 +1,40 @@
<clickhouse>
<keeper_server>
<tcp_port>2181</tcp_port>
<server_id>2</server_id>
<log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path>
<snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path>
<coordination_settings>
<operation_timeout_ms>10000</operation_timeout_ms>
<session_timeout_ms>30000</session_timeout_ms>
<raft_logs_level>warning</raft_logs_level>
<rotate_log_storage_interval>10000</rotate_log_storage_interval>
</coordination_settings>
<raft_configuration>
<server>
<id>1</id>
<hostname>192.168.2.92</hostname>
<port>9444</port>
</server>
<server>
<id>2</id>
<hostname>192.168.2.93</hostname>
<port>9444</port>
</server>
</raft_configuration>
</keeper_server>
<zookeeper>
<node>
<host>localhost</host>
<port>2181</port>
</node>
</zookeeper>
<distributed_ddl>
<path>/clickhouse/ntop_cluster/task_queue/ddl</path>
</distributed_ddl>
</clickhouse>

View file

@ -1,7 +1,8 @@
<?xml version="1.0" ?>
<clickhouse>
<macros>
<cluster>ntop_cluster</cluster>
<replica>replica2</replica>
<shard>1</shard>
<replica>clickhouse2</replica>
</macros>
</clickhouse>

View file

@ -1,15 +0,0 @@
<clickhouse>
<zookeeper>
<node>
<host>192.168.2.221</host>
<port>2181</port>
</node>
<session_timeout_ms>30000</session_timeout_ms>
<operation_timeout_ms>10000</operation_timeout_ms>
<!-- <root>/path/to/zookeeper/node</root> -->
<!-- <identity>user:password</identity> -->
</zookeeper>
<distributed_ddl>
<path>/clickhouse/task_queue/ddl</path>
</distributed_ddl>
</clickhouse>

@ -1 +1 @@
Subproject commit a39060f99963dcd60556e129b6b217c3c1a76620
Subproject commit 993570b44b1aecfeeaba0a925831c4e8b93c9f73

@ -1 +1 @@
Subproject commit 2952058b550dae1b4ef207ddf6124cde3cf33340
Subproject commit fd70672866a6d1c54a6ab5906120e792c4d41432