Add bootstrap REST handler for verifying server config (#8550)

This commit is contained in:
Harshavardhana
2019-11-22 12:45:13 -08:00
committed by GitHub
parent 890b493a2e
commit c3771df641
8 changed files with 276 additions and 19 deletions

View File

@@ -365,6 +365,13 @@ func serverMain(ctx *cli.Context) {
globalHTTPServerErrorCh <- globalHTTPServer.Start()
}()
if globalIsDistXL && globalEndpoints.FirstLocal() {
// Additionally in distributed setup validate
if err := verifyServerSystemConfig(globalEndpoints); err != nil {
logger.Fatal(err, "Unable to initialize distributed setup")
}
}
newObject, err := newObjectLayer(globalEndpoints)
logger.SetDeploymentID(globalDeploymentID)
if err != nil {