monasca-ceilometer/tools/PrivateCloudLoad.sh
Fabio Giannetti e660d2febd Correct the Public Cloud Simulation load
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
2015-10-06 11:25:05 -07:00

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