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

View of /ea/submit_sites.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (download) (as text) (annotate)
Tue Oct 9 16:17:03 2012 UTC (11 years, 7 months ago) by agomez
File size: 1949 byte(s)
Changed comments to English and test
#
# BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
#
# Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
# 
# License Apache Software
#
# The research leading to these results has received funding from 
# the European Community's Seventh Framework Programme (FP7/2007-2013) 
# under agreement number 257386
#
# This software is provided with ABSOLUTELY NO WARRANTY
# 
'''
Created on 22/02/2012

@author: R. Valin
Envio a todos los sites
'''
#import matplotlib.pyplot as plt
import time
#import os
import random
#from exp.ea 
import experiment_type as expt
#from exp.ea
import ea_bonfire as ea



"""################################################################
# Submisson of experiments                                   #
###################################################################"""
#Json description
exp={'description': 'Experiment description',
     'duration': 120,
     'name': 'My Experiment',
     'resources': [{'compute': {'name': 'JSON-COMPUTE-TEST',
                                'description': 'A description of the compute.',
                                'instanceType': 'small',
                                'locations': ['fr-inria'],
                                'resources':[{'storage': '@BonFIRE Debian Squeeze v3'},{'network':'@BonFIRE WAN'}]}}]}




#List of sites where the experiments can be send and the maximum time.

locations=['be-ibbt','fr-inria','uk-hplabs','uk-epcc']

duration = 120
locations = ['fr-inria']
# Get a JSON string with the experiment definition for these locations and times.
exp, info_instance, info_storage, info_location = expt.json_exp(locations, duration)

multi = 10

for i in exp:
    print i
    m=str(i)
    for j in range(10):
        #save(locations)
        location=info_location[m]
        instance=info_instance[m]
        store=info_storage[m]
        ea.ea_bf(i,instance,store,location)
        #time.sleep(float(130))

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

Powered By FusionForge