added weight tag to remote servers config files

This commit is contained in:
Lalit Arvind 2024-11-22 17:32:57 -07:00
parent 8e03c62f72
commit 4d9526ae60
4 changed files with 3 additions and 18 deletions

View File

@ -31,6 +31,7 @@ if __name__ == "__main__":
# new shard template that is gonna be added to remote servers file of each node
new_shard_str = f'''
<shard>
<weight>{curr_num_shards+1}</weight>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse-server{curr_num_servers+1}</host>

View File

@ -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>

View File

@ -3,6 +3,7 @@
<cluster_1S_2R>
<secret>mysecretphrase</secret>
<shard>
<weight>1</weight>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse-server1</host>

View File

@ -3,6 +3,7 @@
<cluster_1S_2R>
<secret>mysecretphrase</secret>
<shard>
<weight>1</weight>
<internal_replication>true</internal_replication>
<replica>
<host>clickhouse-server1</host>