cassandra2-read-async.sh 1.25 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
#!/bin/bash
if [ X$1 == X ] || [ X$2 == X ] || [ X$3 == X ] || [ X$4 == X ] || [ X$5 == X ]; then
echo "usage: $0 <threads> <target> <workload> <hosts> <operationcount>"
exit 1
fi

hyperentoli="java -XmsMINMEMm -XmxMAXMEMm -XX:MaxPermSize=MAXMEMm -cp /opt/YCSB/build/ycsb.jar:/opt/YCSB/db/cassandra-2/lib/*:/opt/YCSB/lib/* com.yahoo.ycsb.async.cassandra.ClientAsyncCassandra -db com.yahoo.ycsb.db.CassandraCQLClientAsync -s"

if [ $1 != "0" ]; then
hyperentoli=$hyperentoli" -threads $1"
fi

if [ $2 != "0" ]; then
hyperentoli=$hyperentoli" -target $2"
fi

if [ $3 != "0" ]; then
hyperentoli=$hyperentoli" -P /opt/YCSB/workloads/$3"
else
hyperentoli=$hyperentoli" -P /opt/YCSB/workloads/workloadread"
fi

if [ $4 != "0" ]; then
hyperentoli=$hyperentoli" -p hosts=$4"
fi

if [ $5 != "0" ]; then
hyperentoli=$hyperentoli" -p operationcount=$5"
else
hyperentoli=$hyperentoli" -p operationcount=1000000"
fi

if [ $6 != "0" ]; then
hyperentoli=$hyperentoli" -p gangserver=$6"
else
hyperentoli=$hyperentoli" -p gangserver=ganeti-nodes-master:192.168.1.80"
fi

if [ $7 != "0" ]; then
hyperentoli=$hyperentoli" -p clientno=$7"
else
hyperentoli=$hyperentoli" -p clientno=0"
fi

date
echo $hyperentoli
$hyperentoli
date