• ycsb模板介绍


    #对应的mongodb uri参数等
    mongodb.url=mongodb://127.0.0.1:27010/test_1

    #对应的mongo数据库名称
    mongodb.database=test_1

    #操作数量 批量提交和插入的数量
    #mongodb.batchsize=1

    #操作类型 true 使用更新操作 false 使用插入操作
    #mongodb.upsert=false

    #写安全设置 默认 acknowledged ,errors_ignored、unacknowledged、acknowledged、journaled、replica_acknowledged、majority 在url中使用 w 和journal已经过时
    mongodb.writeConcern=acknowledged

    # 默认 primary,primary、primary_preferred、secondary、secondary_preferred、nearest 在url中使用 mongodb.readPreference 已经过时
    #mongodb.readPreference=primary

    #线程数最大数值,默认 100, maxPoolSize 在url中使用maxPoolSize已经过时
    #mongodb.maxconnections=100

    #默认值5 最大等待队列长度 在url中使用waitQueueMultiple 已经过时
    #mongodb.threadsAllowedToBlockForConnectionMultiplier=5

    #其他配置 文档大小 fieldlength*fieldcount=2KB

    #并发线程数
    #threadcount=10

    #每秒操作的次数
    #target=100

    #压测时间
    maxexecutiontime=300

    #测试文档的数量
    recordcount=100000

    #操作的次数
    operationcount=1000

    #实现的workload类
    workload=com.yahoo.ycsb.workloads.CoreWorkload

    #读取时,是否需要读取所有字段 true 需要 false 不需要
    readallfields=true

    #读操作百分比
    readproportion=0.95

    #更新操作百分比
    updateproportion=0.25

    #插入操作百分比
    insertproportion=0.25

    #扫描操作百分比
    scanproportion=1

    #请求的分布方式 小部分数据得到大部分请求
    requestdistribution=zipfian

    #扫描时最大长度
    maxscanlength=100

    #扫描方式
    scanlengthdistribution=uniform

    #字段大小 t_prilive表 单个字段最大长度11字节
    fieldlength=11

    #字段数量 t_live表 共有26个字段
    fieldcount=30

    #根据设置的时间(毫秒)间隔显示响应的时间,2个参数都要配置上
    measurementtype=histogram

    timeseries.granularity=2000

  • 相关阅读:
    html调用applet
    WindowListener中的windowClosed方法不执行的问题。
    有理数类 Java BigInteger实现
    有理数类 Java
    BigInteger构造函数解析
    求最大公约数(辗转相除法)
    Java 十六进制转十进制
    Java 十进制转十六进制
    ORA-12520: TNS:listener could not find available handler for requested type of server
    关于 error: Operation is not valid due to the current state of the object。
  • 原文地址:https://www.cnblogs.com/NiceTime/p/8567668.html
Copyright © 2020-2023  润新知