MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetZKCluster

Function GetZKCluster

tools/deploy.py:165–171  ·  view source on GitHub ↗
(conf)

Source from the content-addressed store, hash-verified

163 print("execute cmd[{}] success".format(cmd))
164
165def GetZKCluster(conf):
166 if "zookeeper" not in conf or "address_arr" not in conf["zookeeper"]:
167 return ""
168 zk_cluster_arr = []
169 for item in conf["zookeeper"]["address_arr"]:
170 zk_cluster_arr.append(item["address"])
171 return ",".join(zk_cluster_arr), conf["zk_root_path"]
172
173
174def DeployNameserver(zk_cluster, zk_root_path, ns_conf, teardown):

Callers 1

deploy.pyFile · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected