Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mongodb): 增加mongos时获取configDB的replSetName修复 #5325 #5326

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func ShutdownMongoProcess(user string, instanceType string, binDir string, dbpat
if _, err := util.RunBashCmd(
cmd,
"", nil,
60*time.Second); err != nil {
120*time.Second); err != nil {
return err
}
return nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def increase_mongos(root_id: str, ticket_data: Optional[Dict], sub_kwargs: ActKw
sub_get_kwargs.payload["config"]["port"] = sub_get_kwargs.payload["config_nodes"][0]["port"]
sub_get_kwargs.payload["app"] = sub_get_kwargs.payload["db_app_abbr"]
cluster_name = info["cluster_name"]
sub_get_kwargs.mongos_info["set_id"] = cluster_name
sub_get_kwargs.db_main_version = str(info["db_version"].split(".")[0])
sub_get_kwargs.mongos_info["conf_set_id"] = "{}-conf".format(cluster_name)
sub_get_kwargs.payload["key_file"] = sub_get_kwargs.get_conf(cluster_name=cluster_name)["key_file"]
sub_get_kwargs.payload["nodes"] = []
sub_get_kwargs.payload["nodes"].append(sub_get_kwargs.payload["mongos_nodes"][0])
Expand Down
Loading