########################################################################## # Copyright (c) 2009, ETH Zurich. # All rights reserved. # # This file is distributed under the terms in the attached LICENSE file. # If you do not find this file, copies can be found by writing to: # ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. ########################################################################## import getpass import siteconfig LOADGEN_HOSTS = [] class MSRC(siteconfig.BaseSite): # site-specific configuration variables for ETH WEBSERVER_NFS_HOST = 'barrelfish-4' WEBSERVER_NFS_PATH = '/home/netos/notexist' WEBSERVER_LOCAL_PATH = WEBSERVER_NFS_PATH HTTPERF_PATH = 'httperf.notexist' HTTPERF_MAXCLIENTS = len(LOADGEN_HOSTS * 2) # max number of load generators #IPBENCH_PATH = '/home/netos/tools/ipbench/bin/ipbench.py' #IPBENCHD_PATH = '/home/netos/tools/ipbench/bin/ipbenchd.py' #SSH_ARGS='-x -o StrictHostKeyChecking=no -o ControlPath=none' HAGFISH_LOCATION='' def __init__(self): self._loadgen_hosts = LOADGEN_HOSTS def get_load_generator(self): # take the first host, but put it on the back in case we # need more clients than available hosts (ie. rotate the list) host = self._loadgen_hosts.pop(0) self._loadgen_hosts.append(host) return getpass.getuser(), host siteconfig.site = MSRC() # also cause the MSRC machines to be loaded/initialised import machines.msrc