-
Notifications
You must be signed in to change notification settings - Fork 50
HOWTO: Run simple experiments
To run an experiment, just create a text file named after experiment in ~/cbtool/traces, containing the list of commands just as the ones described here.
Then, execute the CLI with the --trace option (e.g., ~/cbtool/cb --soft_reset --trace traces/exp1.txt)
The following experiment file will create three VMs on an OpenStack cloud, without generating any application load on it:
cldattach osk TESTOPENSTACK
clddefault TESTOPENSTACK
expid exp1
vmcattach all
vmclist
hostlist
vmattach db2
vmattach netperf
vmlist
waitfor 10m
vmdetach all
monextract all
clddetach
exit
This second experiment will deploy a single DayTrader VApp on an OpenStack Cloud, and will vary the load level with a normal distribution with average 10, standard deviation 5, and maximum and minimal values 1 and 20. It will select a new load level each minute, and will run for 5 hours.
cldattach osk TESTOPENSTACK
clddefault TESTOPENSTACK
expid exp2
vmcattach all
vmclist
typealter daytrader load_level=normalI10I5I1I20
typealter daytrader load_duration=60
aiattach daytrader
waitfor 5h
aidetach all
monextract all
clddetach
exit
This third experiment will keep generating new DayTrader and Hadoop VApps, with a specific arrival rate for each VApp Type. DayTrader VApps will arrive with an inter-arrival time according to an exponential distribution with an average of 600 seconds (with maximum and minimum values of 200 and 2000 seconds), while Hadoop VApps will arrive with an inter-arrival time according to a uniform distribution with values between 200 and 900 seconds. Also the load level of the VApp Hadoop is set to be fixed in 9, while the lifetime is fixed to be 7200 seconds. Finally, no more than 40 DayTrader VApps should be created, and we should wait until the number of created VApps is equal to 100, and the wait for 5 more hours.
cldattach osk TESTOPENSTACK
clddefault TESTOPENSTACK
expid exp3
vmcattach all
vmclist
patternlist
patternshow simpledt
patternalter simpledt iait=exponentialI600IXI200I2000
patternalter simpledt max_ais=40
patternshow simpledt
patternshow simplehd
patternalter simplehd iait=uniformIXIXI200I900
patternalter simplehd load_level=9
patternshow simplehd lifetime=7200
patternshow simplehd
aidrsattach simpledt
aidrsattach simplehd
waituntil AI ARRIVED=100
aidrsdetach all
waituntil AI ARRIVING=0
ailist
waitfor 5h
aidetach all
monextract all
clddetach
exit