From 14fc96163060cc48a2bd2ab76c5f35c7c56450df Mon Sep 17 00:00:00 2001 From: Peter Holditch <88775935+p-holditch@users.noreply.github.com> Date: Fri, 24 May 2024 17:22:15 +0100 Subject: [PATCH] Update memtier.sh Gather database connection details from command line remove -a option, for access to passwordless databases --- memtier.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 -