Home | Trees | Indices | Help |
|
---|
|
nodes_* .. lists with one entry per computer cpus_* .. lists with one entry per CPU (usually that's the one used) nodes/cpus_own .. computers reserved for own use, highest priority nodes/cpus_shared.. computers shared with others, medium priority nodes/cpus_other .. computers mainly used by others, lowest priority nodes/cpus_all .. all computers in descending priority nice_dic .. nice value for each host
|
|||
|
Test Mock test, hosts only contains data |
|
|||
[str]
|
getHosts(section,
option) Get a list of hosts from the host list using ConfigParser. |
||
dict
|
getDict(section,
option) Get a dictionary with host as key. |
|
|||
|
conf = ConfigParser.ConfigParser()
|
||
|
dual = []
|
||
|
nodes_own = __dual+ __single
|
||
|
cpus_own = __dual* 2+ __single
|
||
|
nodes_shared = __dual+ __single
|
||
|
cpus_shared = __dual* 2+ __single
|
||
|
__dual = getHosts('others_hosts', 'dual')
|
||
|
__single = getHosts('others_hosts', 'single')
|
||
|
nodes_other = __dual+ __single
|
||
|
cpus_other = __dual* 2+ __single
|
||
|
nodes_all = nodes_own+ nodes_shared+ nodes_other
|
||
|
cpus_all = cpus_own+ cpus_shared+ cpus_other
|
||
|
nice_dic = {'default': 19}
|
||
|
own_nice = getDict('own_hosts', 'nice')
|
||
|
shared_nice = getDict('shared_hosts', 'nice')
|
||
|
others_nice = getDict('others_hosts', 'nice')
|
||
|
own_ram = getDict('own_hosts', 'ram')
|
||
|
shared_ram = getDict('shared_hosts', 'ram')
|
||
|
others_ram = getDict('others_hosts', 'ram')
|
||
|
ram_dic = {'default': 0.5}
|
||
|
nodes_exclude = []
|
||
|
REMOVE = 1
|
|
Get a list of hosts from the host list using ConfigParser.
|
Get a dictionary with host as key.
|
|
conf
|
dual
|
nodes_own
|
cpus_own
|
nodes_shared
|
cpus_shared
|
__dual
|
__single
|
nodes_other
|
cpus_other
|
nodes_all
|
cpus_all
|
nice_dic
|
own_nice
|
shared_nice
|
others_nice
|
own_ram
|
shared_ram
|
others_ram
|
ram_dic
|
nodes_exclude
|
REMOVE
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Tue May 1 22:34:50 2007 | http://epydoc.sourceforge.net |