diff --git a/memtier.sh b/memtier.sh index 260f6e8..d6eadd3 100755 --- a/memtier.sh +++ b/memtier.sh @@ -1,5 +1,14 @@ #!/bin/bash +if [ "$1" == "" ] +then + echo Usage: $0 &2 + exit 1 +fi + +IP=${1%%:*} +PORT=${1##*:} + ## Usefull arguments # -d xxx: data size # -c xxx -t xxx: client and thread per client @@ -16,8 +25,6 @@ memtier_benchmark --ratio 4:0 \ --key-pattern P:P \ --key-maximum=20000000 \ --hide-histogram -x 1000 \ - -a adminRL123 \ --pipeline 40 \ - -s redis-12000.cluster.avasseur-default.demo.redislabs.com -p 12000 \ + -s ${IP} -p ${PORT} \ -t 12 -c 10 --rate-limiting 2000 -