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

1 : agomez 10 #
2 :     # BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
3 :     #
4 :     # Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
5 :     #
6 : agomez 14 # License Apache Software
7 : agomez 10 #
8 :     # The research leading to these results has received funding from
9 :     # the European Community's Seventh Framework Programme (FP7/2007-2013)
10 :     # under agreement number 257386
11 :     #
12 :     # This software is provided with ABSOLUTELY NO WARRANTY
13 :     #
14 :     '''
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 : agomez 15 # Submisson of experiments #
33 : agomez 10 ###################################################################"""
34 : agomez 15 #Json description
35 : agomez 10 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 : agomez 15 #List of sites where the experiments can be send and the maximum time.
48 :    
49 : agomez 10 locations=['be-ibbt','fr-inria','uk-hplabs','uk-epcc']
50 :    
51 :     duration = 120
52 :     locations = ['fr-inria']
53 : agomez 15 # Get a JSON string with the experiment definition for these locations and times.
54 : agomez 10 exp, info_instance, info_storage, info_location = expt.json_exp(locations, duration)
55 :    
56 :     multi = 10
57 :    
58 :     for i in exp:
59 :     print i
60 :     m=str(i)
61 :     for j in range(10):
62 :     #save(locations)
63 :     location=info_location[m]
64 :     instance=info_instance[m]
65 :     store=info_storage[m]
66 :     ea.ea_bf(i,instance,store,location)
67 :     #time.sleep(float(130))

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

Powered By FusionForge