Skip to content

Commit

Permalink
feat(mongodb): mongos自愈,mongo实例下架 TencentBlueKing#7010
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhenryyy committed Oct 18, 2024
1 parent 9cd8a04 commit 8c738eb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def shard_get_data(self) -> Dict:
config = cluster_info.get_config()
shards = cluster_info.get_shards()
cluster = {}
mongos = []
mongos_nodes = []
mongo_config = []
mongodb = []
# 获取mongos参数
for mongos in self.autofix_info["mongos_list"]:
mongos.append(
mongos_nodes.append(
{
"ip": mongos["ip"],
"bk_cloud_id": bk_cloud_id,
Expand Down Expand Up @@ -124,7 +124,7 @@ def shard_get_data(self) -> Dict:
break
ip_info["instances"] = instances
mongodb.append(ip_info)
cluster["mongos"] = mongos
cluster["mongos"] = mongos_nodes
cluster["mongo_config"] = mongo_config
cluster["mongodb"] = mongodb
flow_parameter["infos"]["MongoShardedCluster"].append(cluster)
Expand Down

0 comments on commit 8c738eb

Please sign in to comment.