Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 620ebc97 authored by Jérémie Gaidamour's avatar Jérémie Gaidamour

[dev] oar-properties: Added new SDR/DDR/QDR/FDR properties

parent c82e27c7
......@@ -66,6 +66,17 @@ def get_node_properties(cluster_uid, cluster, node_uid, node)
h['ib56g'] = ib56g ? true : false
h['ib56gmodel'] = ib56g ? ib56g['version'] : 'none'
h['ib'] = h['ib10g'] || h['ib20g'] || h['ib40g'] || h['ib56g']
h['ib_sdr'] = h['ib10g']
h['ib_ddr'] = h['ib20g']
h['ib_qdr'] = h['ib40g']
h['ib_fdr'] = h['ib56g']
h['ib_sdr_model'] = h['ib10gmodel']
h['ib_ddr_model'] = h['ib20gmodel']
h['ib_qdr_model'] = h['ib40gmodel']
h['ib_fdr_model'] = h['ib56gmodel']
myri10g = node['network_adapters'].values.detect{|na| na['interface'] =~ /myri/i && ( na['mounted'] == true || na['mountable'] == true ) && na['rate'] == 10_000_000_000}
h['myri10g'] = myri10g ? true : false
h['myri10gmodel'] = myri10g ? myri10g['version'] : 'none'
......@@ -74,6 +85,8 @@ def get_node_properties(cluster_uid, cluster, node_uid, node)
h['myri2g'] = myri2g ? true : false
h['myri2gmodel'] = myri2g ? myri2g['version'] : 'none'
h['myri'] = h['myri2g'] || h['myri10g']
h['memcore'] = node['main_memory']['ram_size']/node['architecture']['smt_size']/MiB
h['memcpu'] = node['main_memory']['ram_size']/node['architecture']['smp_size']/MiB
h['memnode'] = node['main_memory']['ram_size']/MiB
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment