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

Method CountActiveTargets

cluster/map.go:322–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320func (m *Smap) CountProxies() int { return len(m.Pmap) }
321func (m *Smap) Count() int { return len(m.Pmap) + len(m.Tmap) }
322func (m *Smap) CountActiveTargets() (count int) {
323 for _, t := range m.Tmap {
324 if !t.IsAnySet(NodeFlagsMaintDecomm) {
325 count++
326 }
327 }
328 return
329}
330
331func (m *Smap) CountNonElectable() (count int) {
332 for _, p := range m.Pmap {

Callers 15

newBaseDlJobFunction · 0.80
proxyMetricsSortHandlerFunction · 0.80
broadcastTargetsFunction · 0.80
initMethod · 0.80
ListenSmapChangedMethod · 0.80
RunRebalanceMethod · 0.80
initManagerFunction · 0.80
initECBundlesMethod · 0.80
ListenSmapChangedMethod · 0.80
listObjectsMethod · 0.80

Calls 1

IsAnySetMethod · 0.45

Tested by 15

postRenameWaitAndCheckFunction · 0.64
TestConfigSyncToNewNodeFunction · 0.64
TestMultiProxyFunction · 0.64
killRestorePrimaryFunction · 0.64
killRestoreDiffIPFunction · 0.64
primaryAndTargetCrashFunction · 0.64
proxyCrashFunction · 0.64