yz-ycsb壓測hbase記錄

環境準備

  • 數據準備: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}"}}

                  

  • 工具準備:yz-ycsb
  • 命令準備:
    1. 只讀裝載數據: nohup bin/ycsb load hbase12 -P workloads/nocache_scan_r2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    2. 只讀壓測:nohup bin/ycsb run hbase12 -P workloads/nocache_scan_r2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    3. 只寫裝載數據:nohup bin/ycsb load hbase12 -P workloads/sync_batch_w2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    4. 只寫壓測: nohup bin/ycsb run hbase12 -P workloads/sync_batch_w2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    5. 讀寫裝載數據:nohup bin/ycsb load hbase12 -P workloads/mix_rw_1 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    6. 讀寫 nohup bin/ycsb run hbase12 -P workloads/mix_rw_1 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章