Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
json
4
import
time
5
def
getMinionNum():
6
out=os.popen(
'../bin/kubecfg list minions'
).read()
7
return
len(out.splitlines()[2:-1])
8
def
killAll():
9
''
&
#x27;
10
Kill all pods and controller managers on kubernetes
Callers
1
submit.py
File · 0.85
Calls
1
read
Method · 0.45
Tested by
no test coverage detected