zoukankan      html  css  js  c++  java
  • HBase性能测试

    HBase PerformanceEvaluation:

    Options:
     nomapred        Run multiple clients using threads (rather than use mapreduce)
     rows            Rows each client runs. Default: One million
     size            Total size in GiB. Mutually exclusive with --rows. Default: 1.0.
     sampleRate      Execute test on a sample of total rows. Only supported by randomRead. Default: 1.0
     traceRate       Enable HTrace spans. Initiate tracing every N rows. Default: 0
     table           Alternate table name. Default: 'TestTable'
     multiGet        If >0, when doing RandomRead, perform multiple gets instead of single gets. Default: 0
     compress        Compression type to use (GZ, LZO, ...). Default: 'NONE'
     flushCommits    Used to determine if the test should flush the table. Default: false
     writeToWAL      Set writeToWAL on puts. Default: True
     autoFlush       Set autoFlush on htable. Default: False
     oneCon          all the threads share the same connection. Default: False
     presplit        Create presplit table. Recommended for accurate perf analysis (see guide).  Default: disabled
     inmemory        Tries to keep the HFiles of the CF inmemory as far as possible. Not guaranteed that reads are always served from memory.  Default: false
     usetags         Writes tags along with KVs. Use with HFile V3. Default: false
     numoftags       Specify the no of tags that would be needed. This works only if usetags is true.
     filterAll       Helps to filter out all the rows on the server side there by not returning any thing back to the client. 
     latency         Set to report operation latencies. Default: False
     bloomFilter      Bloom filter type, one of [NONE, ROW, ROWCOL]
     valueSize       Pass value size to use: Default: 1024
     valueRandom     Set if we should vary value size between 0 and 'valueSize'; set on read for stats on size: Default: Not set.
     valueZipf       Set if we should vary value size between 0 and 'valueSize' in zipf form: Default: Not set.
     period          Report every 'period' rows: Default: opts.perClientRunRows / 10
     multiGet        Batch gets together into groups of N. Only supported by randomRead. Default: disabled
     addColumns      Adds columns to scans/gets explicitly. Default: true
     replicas        Enable region replica testing. Defaults: 1.
     splitPolicy     Specify a custom RegionSplitPolicy for the table.
     randomSleep     Do a random sleep before each get between 0 and entered value. Defaults: 0
     columns         Columns to write per row. Default: 1
     caching         Scan caching to use. Default: 30
    
     Note: -D properties will be applied to the conf used. 
      For example: 
       -Dmapreduce.output.fileoutputformat.compress=true
       -Dmapreduce.task.timeout=60000
    
    Command:
     filterScan      Run scan test using a filter to find a specific row based on it's value (make sure to use --rows=20)
     randomRead      Run random read test
     randomSeekScan  Run random seek and scan 100 test
     randomWrite     Run random write test
     scan            Run scan test (read every row)
     scanRange10     Run random seek scan with both start and stop row (max 10 rows)
     scanRange100    Run random seek scan with both start and stop row (max 100 rows)
     scanRange1000   Run random seek scan with both start and stop row (max 1000 rows)
     scanRange10000  Run random seek scan with both start and stop row (max 10000 rows)
     sequentialRead  Run sequential read test
     sequentialWrite Run sequential write test
    
    Args:
     nclients        Integer. Required. Total number of clients (and HRegionServers)
                     running: 1 <= value <= 500

    hbase pe --table=htest --nomapred --rows=20000 --presplit=100 randomWrite 100

    Yahoo Cloud Serving Benchmark

    ./ycsb load hbase10 -P ../workloads/workloadb -p threads=10 -p columnfamily=f1 -p recordcount=20000 -s

  • 相关阅读:
    【HDU1698】 Just a Hook 【线段树入门】
    【转载】线段树 区间合并 小结
    Codeforces 1138B(列方程枚举)
    Codeforces 1132G(关系转化树+dfn+线段树)
    Codeforces 1132E(转化+dp)
    Codeforces 1132D(二分模拟)
    Codeforces 1131G(dp)
    洛谷1941(dp)
    洛谷2758(字符串dp)
    Codeforces 1143B(思维、技巧)
  • 原文地址:https://www.cnblogs.com/rilley/p/6340229.html
Copyright © 2011-2022 走看看