MCPcopy
hub / github.com/NVIDIA/aistore / StopMaintenance

Function StopMaintenance

api/cluster.go:349–365  ·  view source on GitHub ↗
(baseParams BaseParams, actValue *apc.ActValRmNode)

Source from the content-addressed store, hash-verified

347}
348
349func StopMaintenance(baseParams BaseParams, actValue *apc.ActValRmNode) (id string, err error) {
350 msg := apc.ActionMsg{
351 Action: apc.ActStopMaintenance,
352 Value: actValue,
353 }
354 baseParams.Method = http.MethodPut
355 reqParams := AllocRp()
356 {
357 reqParams.BaseParams = baseParams
358 reqParams.Path = apc.URLPathClu.S
359 reqParams.Body = cos.MustMarshal(msg)
360 reqParams.Header = http.Header{cos.HdrContentType: []string{cos.ContentJSON}}
361 }
362 err = reqParams.DoHTTPReqResp(&id)
363 FreeRp(reqParams)
364 return id, err
365}
366
367// ShutdownCluster shuts down the whole cluster
368func ShutdownCluster(baseParams BaseParams) error {

Callers 15

BenchmarkECRebalanceFunction · 0.92
BenchmarkRebalanceFunction · 0.92
stopMaintenanceMethod · 0.92
propsRebalanceFunction · 0.92
unregisteredNodeHealthFunction · 0.92
TestMaintenanceOnOffFunction · 0.92
TestMaintenanceRebalanceFunction · 0.92
testNodeShutdownFunction · 0.92

Calls 4

MustMarshalFunction · 0.92
AllocRpFunction · 0.85
FreeRpFunction · 0.85
DoHTTPReqRespMethod · 0.80

Tested by 15

BenchmarkECRebalanceFunction · 0.74
BenchmarkRebalanceFunction · 0.74
propsRebalanceFunction · 0.74
unregisteredNodeHealthFunction · 0.74
TestMaintenanceOnOffFunction · 0.74
TestMaintenanceRebalanceFunction · 0.74
testNodeShutdownFunction · 0.74
TestShutdownListObjectsFunction · 0.74