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 9 - (view) (download) (as text)

1 : agomez 9 #
2 :     # BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
3 :     #
4 :     # Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
5 :     #
6 :     # License GPL Version 3
7 :     #
8 :     # The research leading to these results has received funding from
9 :     # the European Community's Seventh Frameqork Programme (FP7/2007-2013)
10 :     # under agreement number 257386
11 :     #
12 :     # This software is provided with ABSOLUTELY NO WARRANTY
13 :     #
14 : agomez 1 '''
15 :     Created on 22/02/2012
16 :    
17 :     @author: R. Valin
18 :     Envio a todos los sites
19 :     '''
20 :     #import matplotlib.pyplot as plt
21 :     import time
22 :     #import os
23 :     import random
24 :     #from exp.ea
25 :     import experiment_type as expt
26 :     #from exp.ea
27 :     import ea_bonfire as ea
28 :    
29 :    
30 :    
31 :     """################################################################
32 :     # Envio de experimentos #
33 :     ###################################################################"""
34 :     #Descripcion del trabajo en Json
35 :     exp={'description': 'Experiment description',
36 :     'duration': 120,
37 :     'name': 'My Experiment',
38 :     'resources': [{'compute': {'name': 'JSON-COMPUTE-TEST',
39 :     'description': 'A description of the compute.',
40 :     'instanceType': 'small',
41 :     'locations': ['fr-inria'],
42 :     'resources':[{'storage': '@BonFIRE Debian Squeeze v3'},{'network':'@BonFIRE WAN'}]}}]}
43 :    
44 :    
45 :    
46 :    
47 :     #Indicamos la lista de sites a la que queremos enviar, la duracion de los experimentos
48 :     # y nos devuelve una lista con stings en json con la definicion del experimento
49 :     locations=['be-ibbt','fr-inria','uk-hplabs','uk-epcc']
50 :    
51 :     duration = 120
52 :     locations = ['fr-inria']
53 :     exp, info_instance, info_storage, info_location = expt.json_exp(locations, duration)
54 :    
55 :     multi = 10
56 :    
57 :     for i in exp:
58 :     print i
59 :     m=str(i)
60 :     for j in range(10):
61 :     #save(locations)
62 :     location=info_location[m]
63 :     instance=info_instance[m]
64 :     store=info_storage[m]
65 :     ea.ea_bf(i,instance,store,location)
66 :     #time.sleep(float(130))

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

Powered By FusionForge