sunty
2020-04-15 11827d053131d85c8c9436a76f81ea5fe3a4983a
test upsw vir
1个文件已修改
4 ■■■ 已修改文件
controllers/swfsControllers.go 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/swfsControllers.go
@@ -120,7 +120,9 @@
func UpdateAllNodesScriptArgument(nowPeers []interface{}) {
    for _, val := range nowPeers {
        ip := val.(string)
        fmt.Println("ip: ", ip)
        url := "http://" + ip + ":7020/node/api-v/swfs/updateSWFSService"
        fmt.Println("url", url)
        http.Get(url)
    }
}
@@ -287,7 +289,7 @@
//向集群加入新的master
func AddNewMasterToPeers() (result bool) {
    peer := config.Server.EsServerIp + ":6333"
    addUrl := "http://" + config.Server.EsServerIp + ":" + config.Server.EsServerPort + "/" + config.BasicFS.IndexName + "/_update_by_query"
    addUrl := "http://" + config.Server.EsServerIp + ":" + config.Server.EsServerPort + "/" + config.BasicFS.IndexName + "/_update_by_query?refresh=true"
    addJson := `{
    "script": {
        "lang": "painless",