hbase性能压测

环境准备

  • 工具准备:ycsb
  • 数据准备:usertable 100 个region 并灌入数据。

                  hbase shell>n_splits=100
                  hbase shell> create 'usertable',{NAME=>'cf',DATA_BLOCK_ENCODING=>'DIFF',COMPRESSION=>'LZO'},{SPLITS => (1...n_splits).map{|i| "user#{1000+i*(9999-1000)/n_splits}"}}

                  nohup bin/ycsb load hbase12 -P workloads/sync_batch_w2 -threads 64 -p columnfamily=cf -p fieldlength=16 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &

  • 命令准备:
    1. 只读 nohup bin/ycsb run hbase12 -P workloads/nocache_scan_r2 -threads 64 -p columnfamily=cf -p fieldlength=16 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    2. 只写 nohup bin/ycsb run hbase12 -P workloads/sync_batch_w2 -threads 64 -p columnfamily=cf -p fieldlength=16 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    3. 读写 nohup bin/ycsb run hbase12 -P workloads/mix_rw_1 -threads 64 -p columnfamily=cf -p fieldlength=16 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &

登录到服务器,每一台机器上部署ycsb,每一台服务器上同时执行只读的压测命令3次,也就是开3个实例,那么一共开9个实例,每个实例64并发压测。

收集压测日志中的吞吐与rt,以及系统性能指标:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值