MCPcopy Create free account
hub / github.com/dmlc/parameter_server / getMinionNum

Function getMinionNum

docker/client/script/submit.py:5–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import json
4import time
5def getMinionNum():
6 out=os.popen('../bin/kubecfg list minions').read()
7 return len(out.splitlines()[2:-1])
8def killAll():
9 '''
10 Kill all pods and controller managers on kubernetes

Callers 1

submit.pyFile · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected