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

Function Health

api/cluster.go:37–52  ·  view source on GitHub ↗
(baseParams BaseParams, readyToRebalance ...bool)

Source from the content-addressed store, hash-verified

35}
36
37func Health(baseParams BaseParams, readyToRebalance ...bool) error {
38 var q url.Values
39 baseParams.Method = http.MethodGet
40 if len(readyToRebalance) > 0 && readyToRebalance[0] {
41 q = url.Values{apc.QparamPrimaryReadyReb: []string{"true"}}
42 }
43 reqParams := AllocRp()
44 {
45 reqParams.BaseParams = baseParams
46 reqParams.Path = apc.URLPathHealth.S
47 reqParams.Query = q
48 }
49 err := reqParams.DoHTTPRequest()
50 FreeRp(reqParams)
51 return err
52}
53
54// GetClusterMap retrieves AIStore cluster map.
55func GetClusterMap(baseParams BaseParams) (smap *cluster.Smap, err error) {

Callers 6

killRestoreDiffIPFunction · 0.92
unregisteredNodeHealthFunction · 0.92
TestPrimaryProxyHealthFunction · 0.92
TestTargetHealthFunction · 0.92
waitForClusterFunction · 0.92
WaitNodeReadyFunction · 0.92

Calls 3

AllocRpFunction · 0.85
FreeRpFunction · 0.85
DoHTTPRequestMethod · 0.80

Tested by 5

killRestoreDiffIPFunction · 0.74
unregisteredNodeHealthFunction · 0.74
TestPrimaryProxyHealthFunction · 0.74
TestTargetHealthFunction · 0.74
waitForClusterFunction · 0.74