summaryrefslogtreecommitdiff
path: root/MPE/clickhouse/clickhouse-server/metrika.xml
diff options
context:
space:
mode:
Diffstat (limited to 'MPE/clickhouse/clickhouse-server/metrika.xml')
-rw-r--r--MPE/clickhouse/clickhouse-server/metrika.xml343
1 files changed, 343 insertions, 0 deletions
diff --git a/MPE/clickhouse/clickhouse-server/metrika.xml b/MPE/clickhouse/clickhouse-server/metrika.xml
new file mode 100644
index 0000000..2be298e
--- /dev/null
+++ b/MPE/clickhouse/clickhouse-server/metrika.xml
@@ -0,0 +1,343 @@
+<yandex>
+<!--ck集群节点-->
+<clickhouse_remote_servers>
+
+<!--clickhouse query集群节点-->
+<ck_query>
+
+<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.20.222</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.20.221</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+</ck_query>
+
+
+<!--clickhouse cluster集群节点-->
+<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.30.195</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.30.194</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.30.193</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.195</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.194</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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>
+
+<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.20.195</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.20.194</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.20.193</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+</ck_cluster>
+
+
+<!--clickhouse 所有节点-->
+<ck_all>
+
+<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.20.222</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.20.221</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.30.195</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.30.194</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.30.193</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.195</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.194</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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>
+
+<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.20.195</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.20.194</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+<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.20.193</host>
+ <port>9001</port>
+ <user>default</user>
+ <password>galaxy2019</password>
+ </replica>
+</shard>
+
+</ck_all>
+
+</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>
+
+
+