This commit is contained in:
hughshen
2020-06-13 13:26:28 +08:00
parent cf5569e03c
commit aa79860686
6 changed files with 95 additions and 179 deletions
+8 -40
View File
@@ -47,7 +47,7 @@
<tcp_port>9000</tcp_port>
<!-- Port for communication between replicas. Used for data exchange. -->
<interserver_http_port>9011</interserver_http_port>
<interserver_http_port>9010</interserver_http_port>
<!-- Hostname that is used by other replicas to request this server.
If not specified, than it is determined analoguous to 'hostname -f' command.
@@ -59,7 +59,7 @@
<!-- Listen specified host. use :: (wildcard IPv6 address), if you want to accept connections both with IPv4 and IPv6 from everywhere. -->
<listen_host>::</listen_host>
<!--<listen_host>::1</listen_host>-->
<!--<listen_host>::</listen_host>-->
<listen_host>127.0.0.1</listen_host>
<max_connections>4096</max_connections>
@@ -114,48 +114,14 @@
<!-- Configuration of clusters that could be used in Distributed tables.
https://clickhouse.yandex/reference_en.html#Distributed
-->
<remote_servers>
<ck_cluster>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse1</host>
<port>9000</port>
</replica>
<replica>
<host>clickhouse2</host>
<port>9000</port>
</replica>
</shard>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse3</host>
<port>9000</port>
</replica>
<replica>
<host>clickhouse4</host>
<port>9000</port>
</replica>
</shard>
</ck_cluster>
</remote_servers>
<remote_servers incl="clickhouse_remote_servers" />
<!-- If element has 'incl' attribute, then for it's value will be used corresponding substitution from another file.
By default, path to file with substitutions is /etc/metrika.xml. It could be changed in config in 'include_from' element.
Values for substitutions are specified in /yandex/name_of_substitution elements in that file.
-->
<zookeeper>
<node index="1">
<host>zoo1</host>
<port>2181</port>
</node>
<node index="2">
<host>zoo2</host>
<port>2181</port>
</node>
</zookeeper>
<zookeeper incl="clickhouse_zookeeper_servers" optional="true" />
<!-- Substitutions for parameters of replicated tables.
Optional. If you don't use replicated tables, you could omit that.
@@ -163,10 +129,12 @@
See https://clickhouse.yandex/reference_en.html#Creating%20replicated%20tables
-->
<macros>
<shard>02</shard>
<replica>01</replica>
<shard>shard_02</shard>
<replica>replica_01</replica>
</macros>
<include_from>/etc/clickhouse-server/metrika.xml</include_from>
<!-- Reloading interval for embedded dictionaries, in seconds. Default: 3600. -->
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>