Skip to content

Commit

Permalink
feat: slave重建完毕刷新监控包括主节点 #8698
Browse files Browse the repository at this point in the history
  • Loading branch information
zfrendo authored and iSecloud committed Dec 18, 2024
1 parent b790e8d commit ff3a8b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def tendb_ha_restore_slave_flow(self):
sub_flow=build_surrounding_apps_sub_flow(
bk_cloud_id=cluster_class.bk_cloud_id,
master_ip_list=None,
slave_ip_list=[self.data["new_slave_ip"]],
slave_ip_list=[self.data["new_slave_ip"], master.machine.ip],
root_id=self.root_id,
parent_global_data=copy.deepcopy(self.data),
is_init=True,
Expand Down Expand Up @@ -631,7 +631,7 @@ def restore_local_slave_flow(self):
sub_flow=build_surrounding_apps_sub_flow(
bk_cloud_id=cluster_model.bk_cloud_id,
master_ip_list=None,
slave_ip_list=[target_slave.machine.ip],
slave_ip_list=[target_slave.machine.ip, master.machine.ip],
root_id=self.root_id,
parent_global_data=copy.deepcopy(self.data),
cluster_type=ClusterType.TenDBHA.value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def tendb_remote_slave_local_recover(self):
sub_flow=build_surrounding_apps_sub_flow(
bk_cloud_id=cluster_class.bk_cloud_id,
master_ip_list=None,
slave_ip_list=[self.data["slave_ip"]],
slave_ip_list=[self.data["slave_ip"], self.data["master_ip"]],
root_id=self.root_id,
parent_global_data=copy.deepcopy(self.data),
cluster_type=cluster_class.cluster_type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def tendb_remote_slave_recover(self):
re_surrounding_sub_pipeline.add_sub_pipeline(
sub_flow=build_surrounding_apps_sub_flow(
bk_cloud_id=cluster_class.bk_cloud_id,
slave_ip_list=[self.data["target_ip"]],
slave_ip_list=[self.data["target_ip"], master.machine.ip],
root_id=self.root_id,
parent_global_data=copy.deepcopy(self.data),
is_init=True,
Expand Down

0 comments on commit ff3a8b4

Please sign in to comment.