Log In | Get Help   
Home My Page Projects Code Snippets Project Openings BonFIRE VCOC Demonstration Kit
Summary Activity SCM Files Wiki
[bonfiredemokit] Annotation of /ea/submit_sites.py
[bonfiredemokit] / ea / submit_sites.py Repository:
ViewVC logotype

Annotation of /ea/submit_sites.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (view) (download) (as text)

1 : agomez 1 '''
2 :     Created on 22/02/2012
3 :    
4 :     @author: R. Valin
5 :     Envio a todos los sites
6 :     '''
7 :     #import matplotlib.pyplot as plt
8 :     import time
9 :     #import os
10 :     import random
11 :     #from exp.ea
12 :     import experiment_type as expt
13 :     #from exp.ea
14 :     import ea_bonfire as ea
15 :    
16 :    
17 :    
18 :     """################################################################
19 :     # Envio de experimentos #
20 :     ###################################################################"""
21 :     #Descripcion del trabajo en Json
22 :     exp={'description': 'Experiment description',
23 :     'duration': 120,
24 :     'name': 'My Experiment',
25 :     'resources': [{'compute': {'name': 'JSON-COMPUTE-TEST',
26 :     'description': 'A description of the compute.',
27 :     'instanceType': 'small',
28 :     'locations': ['fr-inria'],
29 :     'resources':[{'storage': '@BonFIRE Debian Squeeze v3'},{'network':'@BonFIRE WAN'}]}}]}
30 :    
31 :    
32 :    
33 :    
34 :     #Indicamos la lista de sites a la que queremos enviar, la duracion de los experimentos
35 :     # y nos devuelve una lista con stings en json con la definicion del experimento
36 :     locations=['be-ibbt','fr-inria','uk-hplabs','uk-epcc']
37 :    
38 :     duration = 120
39 :     locations = ['fr-inria']
40 :     exp, info_instance, info_storage, info_location = expt.json_exp(locations, duration)
41 :    
42 :     multi = 10
43 :    
44 :     for i in exp:
45 :     print i
46 :     m=str(i)
47 :     for j in range(10):
48 :     #save(locations)
49 :     location=info_location[m]
50 :     instance=info_instance[m]
51 :     store=info_storage[m]
52 :     ea.ea_bf(i,instance,store,location)
53 :     #time.sleep(float(130))

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge