X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fmulti-blaster.sh;fp=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fmulti-blaster.sh;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=854643fa21c6aa8a64fcaa67b374b7a946a2208c;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh deleted file mode 100755 index 854643fa21..0000000000 --- a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/multi-blaster.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -# author__ = "Jan Medved" -# copyright__ = "Copyright(c) 2014, Cisco Systems, Inc." -# license__ = "New-style BSD" -# email__ = "jmedved@cisco.com" - -# Init our own program name -program_name=$0 - -# Command to invoke -CMD="./flow_config_blaster.py" - -# Default number of $CMD instances -instances=1 - -# Default parameters for $CMD -no_delete=false -auth=false -threads=1 -flows=1000 -cycles=1 -host=127.0.0.1 -port=8181 -fpr=1 - -function usage { - echo "usage: $program_name [-h?an] [-i instances] [-c cycles] [-f flows] [-t threads] [-o odl_host] [-p odl_port]" - echo " -h|? print this message" - echo " -a use default authentication ('admin/admin')" - echo " -b batchsize # offlows per RESTCONF add-flow request" - echo " -n use the 'no-delete' flag in '$CMD'" - echo " -i instances number of '$CMD' instances to spawn" - echo " -c cycles number of cycles" - echo " -f flows number of flows" - echo " -h host IP Address of the ODL controller" - echo " -p port RESTCONF port in the ODL controller" - echo " -t threads number of threads" - echo "Optional flags/arguments [acfnopt] are passed to '$CMD'." -} - -# Initialize our own variables: - - -while getopts "h?ab:c:f:i:no:p:t:" opt; do - case "$opt" in - h|\?) - usage - exit 1 - ;; - a) auth=true - ;; - b) fpr=$OPTARG - ;; - c) cycles=$OPTARG - ;; - f) flows=$OPTARG - ;; - i) instances=$OPTARG - ;; - n) no_delete=true - ;; - h) host=$OPTARG - ;; - p) port=$OPTARG - ;; - t) threads=$OPTARG - ;; - esac -done - -echo "*** Creating $instances instance(s) of '$CMD' ***" -echo "" - -let "flows_per_instance=$cycles * $flows * $threads" -i=0 - -START_TIME=$SECONDS -while [ $i -lt $instances ]; do - let "startflow=$flows_per_instance * $i" - - CMD_STRING=$(printf '%s --cycles %s --flows %s --threads %s ' $CMD $cycles $flows $threads) - CMD_STRING+=$(printf ' --host %s --port %s --startflow %s --fpr %s' $host $port $startflow $fpr) - if [ "$auth" = true ] ; then - CMD_STRING+=' --auth' - fi - if [ "$no_delete" = true ] ; then - CMD_STRING+=' --no-delete' - fi - - echo "Starting instance $i: '$CMD_STRING'" - let i=$i+1 - $CMD_STRING & -done - -wait -ELAPSED_TIME=$(($SECONDS - $START_TIME)) - -echo "Done." - -if [ "$ELAPSED_TIME" -gt 0 ] ; then - let "rate=($flows_per_instance * $instances)/$ELAPSED_TIME" - echo "Measured rate: $rate" - echo "Measured time: $ELAPSED_TIME" -fi \ No newline at end of file