ClusterApi.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ClusterApi.go
@@ -29,6 +29,15 @@ return true, nil } //初始化索引 func InitIndex(indexPath string) (bool) { resultMsg := CMDSC("sh " + indexPath + "/indexInit.sh") if resultMsg == "运行失败" { return false } return true } //启动服务 func StartServer(binPath string, ip string, port string) bool { resultMsg := CMDSC("sh " + binPath + "/es_start.sh") @@ -51,7 +60,6 @@ bs := VerifyShortNodeServer(ip, port) return bs } //更换节点角色 func UpdateNodeRole(configPath string, role string) (bool, error) {