使用YCSB工具工具进行cassandra性能测试

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
https://github.com/brianfrankcooper/YCSB
https://github.com/brianfrankcooper/YCSB/wiki/Core-Properties

2.YCSB在src目录中提供的客户端为了保持通用性,忽视了兼容性,我在用其测试cassandra的过程中,导入0.7版本cassandra lib中的jar包后,使用ant编译YCSB CASSANDRA客户端报方法参数类型不正确,甚至方法找不到。无奈只能自己用Hector写个YCSB客户端。

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23937368/viewspace-1053052/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23937368/viewspace-1053052/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值