fix broken master health checking

This commit is contained in:
Chris Lu
2018-05-07 00:37:33 -07:00
parent be58993f47
commit cb6b1d8d41
4 changed files with 11 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ func (fs *FilerServer) detectHealthyMaster(masterNode string) (master string, e
}
func checkMaster(masterNode string) error {
statUrl := "http://" + masterNode + "/stats"
statUrl := "http://" + masterNode + "/stats/health"
glog.V(4).Infof("Connecting to %s ...", statUrl)
_, e := util.Get(statUrl)
return e