summaryrefslogtreecommitdiff
path: root/PCAP-PIC/clickhouse/clickhouse-server/metrika.xml
diff options
context:
space:
mode:
Diffstat (limited to 'PCAP-PIC/clickhouse/clickhouse-server/metrika.xml')
-rw-r--r--PCAP-PIC/clickhouse/clickhouse-server/metrika.xml55
1 files changed, 55 insertions, 0 deletions
diff --git a/PCAP-PIC/clickhouse/clickhouse-server/metrika.xml b/PCAP-PIC/clickhouse/clickhouse-server/metrika.xml
new file mode 100644
index 0000000..fe30fc5
--- /dev/null
+++ b/PCAP-PIC/clickhouse/clickhouse-server/metrika.xml
@@ -0,0 +1,55 @@
+<yandex>
+<!--ck集群节点-->
+<clickhouse_remote_servers>
+
+<ck_cluster>
+ <shard>
+ <!-- Optional. Shard weight when writing data. Default: 1. -->
+ <weight>1</weight>
+ <!-- Optional. Whether to write data to just one of the replicas. Default: false (write data to all replicas). -->
+ <internal_replication>false</internal_replication>
+ <replica>
+ <host>192.168.10.193</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+ </shard>
+</ck_cluster>
+
+</clickhouse_remote_servers>
+<zookeeper-servers>
+<node index="1">
+<host>192.168.20.221</host>
+<port>2181</port>
+</node>
+
+<node index="2">
+<host>192.168.20.222</host>
+<port>2181</port>
+</node>
+
+<node index="3">
+<host>192.168.20.223</host>
+<port>2181</port>
+</node>
+
+<session_timeout_ms>120000</session_timeout_ms>
+</zookeeper-servers>
+
+<networks>
+<ip>::/0</ip>
+</networks>
+
+<!--压缩相关配置-->
+<clickhouse_compression>
+<case>
+<min_part_size>10000000000</min_part_size>
+<min_part_size_ratio>0.01</min_part_size_ratio>
+<method>lz4</method> <!--压缩算法lz4压缩比zstd快, 更占磁盘-->
+</case>
+</clickhouse_compression>
+</yandex>
+
+
+