mirror of
https://github.com/20kaushik02/real-time-traffic-analysis-clickhouse.git
synced 2025-12-06 09:44:06 +00:00
added weight tag to remote servers config files
This commit is contained in:
parent
8e03c62f72
commit
4d9526ae60
@ -31,6 +31,7 @@ if __name__ == "__main__":
|
|||||||
# new shard template that is gonna be added to remote servers file of each node
|
# new shard template that is gonna be added to remote servers file of each node
|
||||||
new_shard_str = f'''
|
new_shard_str = f'''
|
||||||
<shard>
|
<shard>
|
||||||
|
<weight>{curr_num_shards+1}</weight>
|
||||||
<internal_replication>true</internal_replication>
|
<internal_replication>true</internal_replication>
|
||||||
<replica>
|
<replica>
|
||||||
<host>clickhouse-server{curr_num_servers+1}</host>
|
<host>clickhouse-server{curr_num_servers+1}</host>
|
||||||
|
|||||||
@ -1,18 +0,0 @@
|
|||||||
<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>
|
|
||||||
@ -3,6 +3,7 @@
|
|||||||
<cluster_1S_2R>
|
<cluster_1S_2R>
|
||||||
<secret>mysecretphrase</secret>
|
<secret>mysecretphrase</secret>
|
||||||
<shard>
|
<shard>
|
||||||
|
<weight>1</weight>
|
||||||
<internal_replication>true</internal_replication>
|
<internal_replication>true</internal_replication>
|
||||||
<replica>
|
<replica>
|
||||||
<host>clickhouse-server1</host>
|
<host>clickhouse-server1</host>
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
<cluster_1S_2R>
|
<cluster_1S_2R>
|
||||||
<secret>mysecretphrase</secret>
|
<secret>mysecretphrase</secret>
|
||||||
<shard>
|
<shard>
|
||||||
|
<weight>1</weight>
|
||||||
<internal_replication>true</internal_replication>
|
<internal_replication>true</internal_replication>
|
||||||
<replica>
|
<replica>
|
||||||
<host>clickhouse-server1</host>
|
<host>clickhouse-server1</host>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user