e660d2febd
The Public cloud load has a 20K iteration for each tenant and metric. This is wrong and it will generate 30M messages. The correct value is 5K and it will generate the expected 7.5M. Also added documentation reflecting the changes in the code to suppor tenant_id, resource_id and date. Added documentation on how to set the system to deal with high load. Change-Id: I9ca24cb46828b2a225bb61f720e54b55edb65571
24 lines
692 B
Bash
24 lines
692 B
Bash
#!/bin/bash
|
|
|
|
# Private Cloud Load Simulator
|
|
|
|
services=( nova nova nova nova cinder cinder cinder cinder glance glance )
|
|
|
|
for d in {1..30}
|
|
do
|
|
if [ ${#d} -ge 2 ]; then date="2015-09-${d}"
|
|
else date="2015-09-0${d}"
|
|
fi
|
|
for t in {1..5}
|
|
do
|
|
tenant_id="00${t}_tenant_abcdefgh"
|
|
for s in "${services[@]}"
|
|
do
|
|
#echo $date
|
|
#echo $tenant_id
|
|
resource_id="${s}_resource_t_${t}"
|
|
#echo $resource_id
|
|
python ceilosca-message-simulator.py --url rabbit://stackrabbit:password@localhost/ notify-client -m 5000 -s $s -a create -x $tenant_id -r $resource_id -d $date
|
|
done
|
|
done
|
|
done |