Home | Trees | Indices | Help |
|
---|
|
List of cluster computers.
Each host must be accessible via ssh w/o password.
List and dictionaries describing avaliable hosts:nodes_* .. lists with one entry per computer cpus_* .. lists with one entry per CPU (usuallly 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 OR None
|
getHosts(section,
option) Get host names from the config file hosts.dat specified bythe section and option parameters. |
||
dict
|
getDict(section,
option) Get host dictionaries from the config file hosts.dat specified by the section and option parameters. |
|
|||
|
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 host names from the config file hosts.dat specified bythe section and option parameters.
|
Get host dictionaries from the config file hosts.dat specified by the section and option parameters. The dictionary has the host as key and the values can be availiable RAM or a nice value.
|
|
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 |