mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Automatic style fix
This commit is contained in:
parent
6e06af1b25
commit
237bb15a9f
@ -19,25 +19,33 @@ def generate_cluster_def():
|
|||||||
)
|
)
|
||||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||||
with open(path, "w") as f:
|
with open(path, "w") as f:
|
||||||
f.write("""
|
f.write(
|
||||||
|
"""
|
||||||
<clickhouse>
|
<clickhouse>
|
||||||
<remote_servers>
|
<remote_servers>
|
||||||
<cluster>
|
<cluster>
|
||||||
<shard>
|
<shard>
|
||||||
""")
|
"""
|
||||||
|
)
|
||||||
for i in range(num_nodes):
|
for i in range(num_nodes):
|
||||||
f.write("""
|
f.write(
|
||||||
|
"""
|
||||||
<replica>
|
<replica>
|
||||||
<host>node"""+str(i)+"""</host>
|
<host>node"""
|
||||||
|
+ str(i)
|
||||||
|
+ """</host>
|
||||||
<port>9000</port>
|
<port>9000</port>
|
||||||
</replica>
|
</replica>
|
||||||
""")
|
"""
|
||||||
f.write("""
|
)
|
||||||
|
f.write(
|
||||||
|
"""
|
||||||
</shard>
|
</shard>
|
||||||
</cluster>
|
</cluster>
|
||||||
</remote_servers>
|
</remote_servers>
|
||||||
</clickhouse>
|
</clickhouse>
|
||||||
""")
|
"""
|
||||||
|
)
|
||||||
return path
|
return path
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user