'''
Created on Apr 26, 2011
Modified on Apr 24, 2011
@author: Dilum Bandara
@version: 0.1
@copyright: Copyright(c) 2011, Dilum Bandara
@license: GPL
'''

NUM_PEERS = 527 #Including superpeers
NUM_SUPERPEERS = 20
NUM_ATTRIBS = 12
NUM_RINGS = 1
ATT_LIST = ['Loc', 'Lati', 'Longi', 'NType', 'KVer', 'FCName', 'CSp', \
            'NCore', 'CorePC', 'MSize', 'DSize', 'BWLim']
            #, 'CFree', 'DFree', 'Tx', 'MFree', 'RspT', 'UpT', '1mLd', 'TAve', 'Drift']
QUE_RATE = 150.0
BUCKET_SIZE = 900.0 #Bucket size of stat in seconds
DELAY_BEFORE_QUE = 2.0
SAMPLING_INT = 300.0
TRACK_ATT_COST = True #Track which attribute contribute to cost 

T_DHT_RESP_TIME = 0.15 #500ms change
T_DHT_SWAP_IN = 1
T_DHT_SWAP_OUT = 1
T_DHT_SWAP_USED = 5.0 #5% change
T_DHT_DISK_IN = 1
T_DHT_DISK_OUT = 1
T_DHT_DISK_SVC = 1.0 
T_DHT_DISK_UTIL = 2.0 #1% change
T_DHT_DISK_USED = 2.0 #2% change
T_DHT_DISK_FREE = 5.0
T_DHT_UPTIME = 21600.0 #6 hours 
T_DHT_1_MIN_LOAD = 2.0
T_DHT_5_MIN_LOAD = 2.0 
T_DHT_15_MIN_LOAD = 2.0 
T_DHT_TIMER_MAX = 100.0 #100ms change
T_DHT_TIMER_AVE = 100.0 #100ms change
T_DHT_MEM_FREE = 10.0
T_DHT_MEM_ACTIVE = 10.0
T_DHT_CPU_FREE = 10.0 #10% change
T_DHT_TX_RATE = 1000
T_DHT_RX_RATE = 1000
T_DHT_DRIFT = 1.0 #100ms change