-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrc-ycsb.sh
More file actions
executable file
·62 lines (53 loc) · 1.79 KB
/
Copy pathrc-ycsb.sh
File metadata and controls
executable file
·62 lines (53 loc) · 1.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# This script runs a single YCSB client on a previously setup RAMCloud cluster.
if [ $# -ne 3 -a $# -ne 5 ]; then
echo "Usage: $0 workload records coordLocator [insertstart insertcount]"
exit 1
fi
WORKLOAD=$1
RECORDS=$2
COORD=$3
DIR=$(dirname $0)
cd $DIR/YCSB
if [ $# -eq 5 ]; then
INSERT_START=$4
INSERT_COUNT=$5
echo "Insert Start: $INSERT_START, Insert Count: $INSERT_COUNT"
fi
echo "Workload: $WORKLOAD, Records: $RECORDS, Output: $OUTPUT"
echo "Using Coordinator at $COORD"
export LD_LIBRARY_PATH=/usr/local/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/ramcloud/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/bin/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DIR/ramcloud/lib/ramcloud
CP="$DIR/YCSB/dynamodb/conf"
CP="$CP:$DIR/YCSB/hbase/src/main/conf"
CP="$CP:$DIR/YCSB/infinispan/src/main/conf"
CP="$CP:$DIR/YCSB/voldemort/src/main/conf"
CP="$CP:$DIR/YCSB/nosqldb/src/main/conf"
CP="$CP:$DIR/YCSB/gemfire/src/main/conf"
CP="$CP:$DIR/YCSB/core/target/core-0.1.4.jar"
CP="$CP:$DIR/YCSB/jdbc/src/main/conf"
CP="$CP:/$DIR/YCSB/ramcloud/src/main/java"
CP="$CP:$DIR/ramcloud/lib/ramcloud/ramcloud.jar"
DB=com.yahoo.ycsb.db.RamCloudClient
if [ "$INSERT_COUNT" = "" ]; then
java -cp $CP com.yahoo.ycsb.Client -db $DB \
-P workloads/${WORKLOAD} -t \
-p ramcloud.coordinatorLocator=${COORD} \
-p ramcloud.tableServerSpan=24 \
-p recordcount=${RECORDS} \
-p operationcount=${RECORDS} \
-p requestdistribution=uniform \
-threads 8
else
java -cp $CP com.yahoo.ycsb.Client -db $DB \
-P workloads/${WORKLOAD} -load \
-p ramcloud.coordinatorLocator=${COORD} \
-p ramcloud.tableServerSpan=24 \
-p recordcount=${RECORDS} \
-p operationcount=${RECORDS} \
-p insertstart=${INSERT_START} \
-p insertcount=${INSERT_COUNT} \
-threads 8
fi