使用YCSB工具工具進行cassandra效能測試

oxoxooxx發表於2011-07-27

ant安裝:
export JAVA_HOME=/usr/java/jdk1.6.0_25/
export ANT_HOME=/home/wangm/apache-ant-1.8.2
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

YCSB安裝:
ant
ant dbcompile-cassadra-0.7

java -cp build/ycsb.jar:db/hbase/lib/* com.yahoo.ycsb.Client
-p columnfamily=f1 -db com.yahoo.ycsb.db.HBaseClient -P workloads/workloada -threads 50 -load


Core workload package properties
The property files used with the core workload generator can specify values for the following properties:
fieldcount: the number of fields in a record (default: 10)

fieldlength: the size of each field (default: 100)

readallfields: should reads read all fields (true) or just one (false) (default: true)

readproportion: what proportion of operations should be reads (default: 0.95)

updateproportion: what proportion of operations should be updates (default: 0.05)

insertproportion: what proportion of operations should be inserts (default: 0)
scanproportion: what proportion of operations should be scans (default: 0)

readmodifywriteproportion: what proportion of operations should be read a record, modify it, write it back (default: 0)

requestdistribution: what distribution should be used to select the records to operate on – uniform, zipfian or latest (default: uniform)

maxscanlength: for scans, what is the maximum number of records to scan (default: 1000)

scanlengthdistribution: for scans, what distribution should be used to choose the number of records to scan, for each scan, between 1 and maxscanlength (default: uniform)

insertorder: should records be inserted in order by key (“ordered”), or in hashed order (“hashed”) (default: hashed)

PS:
1.YCSB sites

2.YCSB在src目錄中提供的客戶端為了保持通用性,忽視了相容性,我在用其測試cassandra的過程中,匯入0.7版本cassandra lib中的jar包後,使用ant編譯YCSB CASSANDRA客戶端報方法引數型別不正確,甚至方法找不到。無奈只能自己用Hector寫個YCSB客戶端。

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23937368/viewspace-1053052/,如需轉載,請註明出處,否則將追究法律責任。

相關文章