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

Function killAll

docker/client/script/submit.py:8–21  ·  view source on GitHub ↗

Kill all pods and controller managers on kubernetes

()

Source from the content-addressed store, hash-verified

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
11 '''
12 #kill replicationControllers
13 out=os.popen('../bin/kubecfg list replicationControllers').read()
14 for line in out.splitlines()[2:]:
15 line=line.strip().split()
16 if len(line)>0:
17 os.system('../bin/kubecfg stop '+line[0])
18 os.system('../bin/kubecfg rm '+line[0])
19
20 #kill scheduler
21 os.system("../bin/kubecfg delete pods/scheduler")
22
23
24def upScheduler(num_servers,num_workers,algorithm,data_dir,output_dir):

Callers 1

submit.pyFile · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected