1########################################################################## 2# Copyright (c) 2013, University of Washington. 3# All rights reserved. 4# 5# This file is distributed under the terms in the attached LICENSE file. 6# If you do not find this file, copies can be found by writing to: 7# ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 8########################################################################## 9 10import getpass 11import siteconfig 12 13LOADGEN_HOSTS = [] 14 15class UW(siteconfig.BaseSite): 16 # site-specific configuration variables for UW 17 WEBSERVER_NFS_HOST = 'swingout6' 18 # NFS_SERVER_HOST = 'tomme1.in.barrelfish.org' 19 WEBSERVER_NFS_PATH = '/home/netos/notexist' 20 WEBSERVER_LOCAL_PATH = WEBSERVER_NFS_PATH 21 HTTPERF_PATH = 'httperf.notexist' 22 HTTPERF_MAXCLIENTS = len(LOADGEN_HOSTS * 2) # max number of load generators 23 IPBENCH_PATH = 'ipbench.notexist' 24 IPBENCHD_PATH = 'ipbenchd.notexist' 25 SSH_ARGS='-x -o StrictHostKeyChecking=no -o ControlPath=none' 26 HAGFISH_LOCATION='' 27 28 def __init__(self): 29 self._loadgen_hosts = LOADGEN_HOSTS 30 31 def get_load_generator(self): 32 # take the first host, but put it on the back in case we 33 # need more clients than available hosts (ie. rotate the list) 34 host = self._loadgen_hosts.pop(0) 35 self._loadgen_hosts.append(host) 36 return getpass.getuser(), host 37 38siteconfig.site = UW() 39 40# also cause the UW machines to be loaded/initialised 41import machines.uw 42