Blame view

decision/templates/infinispan/scripts/infinispan-hotrod-load.sh 1.69 KB
8146dcf82   Thanasis Naskos   first commit
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
  #!/bin/bash
  if [ X$1 == X ] || [ X$2 == X ] || [ X$3 == X ] || [ X$4 == X ] || [ X$5 == X ] || [ X$6 == X ] || [ X$7 == X ]; then
           echo "usage: $0 <threads> <target> <workload> <server1_ip-server2_ip-...> <recordcount> <insertstart> <insertcount>"
           exit 1
  fi
  
  hyperentoli="java -XmsMINMEMm -XmxMAXMEMm -XX:MaxPermSize=MAXMEMm -cp /opt/YCSB/build/ycsb.jar:/opt/YCSB/db/infinispan/lib/* com.yahoo.ycsb.Client -load -db com.yahoo.ycsb.db.InfinispanHotRodClient -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/workloada"
  fi
  
  if [ $4 != "0" ]; then
          hyperentoli=$hyperentoli" -p ispn_url=$4"
  fi
  
  if [ $5 != "0" ]; then
          hyperentoli=$hyperentoli" -p recordcount=$5"
  else
  	hyperentoli=$hyperentoli" -p recordcount=1000000"
  fi
  
  if [ $6 != "-1" ]; then
          hyperentoli=$hyperentoli" -p insertstart=$6"
  fi
  
  if [ $7 != "0" ]; then
          hyperentoli=$hyperentoli" -p insertcount=$7"
  fi
  
  #hyperentoli=$hyperentoli" -p fieldlength=10"
  
  echo $hyperentoli
  date
  $hyperentoli
  date
  
  #java -Xms256m -Xmx2048m -XX:MaxPermSize=2048m -cp build/ycsb.jar:db/hbase/lib/* com.yahoo.ycsb.Client -load -db com.yahoo.ycsb.db.HBaseClient -threads $1 -P workloads/$3 -p columnfamily=usertable -p quorum=62.217.120.112 -p port=2222 -p recordcount=$4 -s
  
  #java -Xms256m -Xmx1024m -Xss128k -XX:MaxPermSize=1024m -cp build/ycsb.jar:db/hbase/lib/* com.yahoo.ycsb.Client -load -db com.yahoo.ycsb.db.HBaseClient -threads $1 -target $2 -P workloads/$3 -p columnfamily=usertable -recordcount=1000 >> hbase-output.txt