ITPub博客

首页 > 应用开发 > IT综合 > 使用YCSB工具工具进行cassandra性能测试

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

原创 IT综合 作者:oxoxooxx 时间:2011-07-27 00:01:31 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/23937368/viewspace-1053052/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    178
  • 访问量
    843645