mkdir -p $TMP_RESULTS_DIR_BASE/$RUBBOS_RESULTS_DIR_NAME
"
-#TODO use for loop to genrate rubbos.properties file 200 ~ 1700
-for i in {2..2}
+# run test rubbos.properties from 200 to 3200
+for i in {2..7..5}
do
+ echo "Start Browsing Only with rubbos.properties_$((100*i)) $(date)"
+
ssh $BENCHMARK_HOST "
source /bottlenecks/rubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh
rm -f $RUBBOS_HOME/Client/rubbos.properties
scp $OUTPUT_HOME/rubbos_conf/rubbos.properties $BENCHMARK_HOST:$RUBBOS_HOME/Client/rubbos.properties
rm -rf $OUTPUT_HOME/rubbos_conf/rubbos.properties
- #echo "Resetting all data"
- #$OUTPUT_HOME/scripts/reset_all.sh
+ echo "Resetting all data"
+ $OUTPUT_HOME/scripts/reset_all.sh
# Browsing Only
echo "Start Browsing Only with rubbos.properties_$((100*i))"
mv 20* $TMP_RESULTS_DIR_BASE/$RUBBOS_RESULTS_DIR_NAME/
"
- #$OUTPUT_HOME/scripts/stop_all.sh
- #$OUTPUT_HOME/scripts/kill_all.sh
- #sleep 15
- echo "End Browsing Only with rubbos.properties_$((100*i))"
-
- # Read/Write
+ $OUTPUT_HOME/scripts/stop_all.sh
+ $OUTPUT_HOME/scripts/kill_all.sh
+ sleep 15
+ echo "End Browsing Only with rubbos.properties_$((100*i)) $(date)"
done
echo "Processing the results..."
tar zxf $RUBBOS_RESULTS_DIR_NAME.tgz
ls $RUBBOS_RESULTS_DIR_NAME
+echo "Fetch POD env parameters"
+source /tmp/vm_dev_setup/hosts.conf
+sed -i -e "s/REPLACE_NODE_NAME/$NODE_NAME/g" \
+ -e "s/REPLACE_INSTALLER_TYPE/$INSTALLER_TYPE/g" \
+ -e "s/REPLACE_VERSION/$BOTTLENECKS_VERSION/g" \
+ -e "s#REPLACE_BOTTLENECKS_DB_TARGET#$BOTTLENECKS_DB_TARGET#g" \
+ $BOTTLENECKS_TOP/utils/dashboard/dashboard.yaml
+
+cat $BOTTLENECKS_TOP/utils/dashboard/dashboard.yaml
+
python $BOTTLENECKS_TOP/utils/dashboard/process_data.py \
$RUBBOS_RESULTS_DIR_BASE/$RUBBOS_RESULTS_DIR_NAME \
$BOTTLENECKS_TOP/utils/dashboard/dashboard.yaml