zoukankan      html  css  js  c++  java
  • Aurora sysbench压测

    加载数据

    db.t2.medium
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=aurorabenchmark --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    db.r4.large
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr4largetest --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    db.r4.xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr4xlargetest --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    db.r4.2xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr42xlargetest --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    db.r4.4xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr44xlargetest --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    db.r4.8xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr48xlargetest --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    db.r4.16xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr416largetest --mysql-port=3306 --mysql-user=larry --mysql-password=' mypasswd' --mysql-db=sysbenchmark --mysql-table-engine=innodb --oltp-table-size=25000000 --oltp-tables-count=50 --db-driver=mysql prepare
    View Code

    百分百读压测

    客户端X4

    cd /usr/local/src/sysbench/sysbench

    db.r4.16xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr416largetest --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=500 run
    
    db.r4.8xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr48xlargetest --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=500 run
    
    db.r4.4xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr44xlargetest --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=500 run
    
    db.r4.2xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr42xlargetest --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=500 run
    
    db.r4.xlarge
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr4xlargetest --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=400 run
    
    db.r4.large
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=dbr4largetest --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=200 run
    
    db.t2.medium
    time ./sysbench --test=tests/db/oltp.lua --mysql-host=aurorabenchmark --oltp-tables-count=50 --mysql-user=larry --mysql-password='mypasswd' --mysql-port=3306 --db-driver=mysql --oltp-tablesize=25000000 --mysql-db=sysbenchmark --max-requests=0 --oltp_simple_ranges=0 --oltp-distinct-ranges=0 --oltp-sum-ranges=0 --oltp-order-ranges=0 --max-time=3600 --oltp-read-only=on --report-interval=10 --num-threads=20 run
    View Code

     

           

  • 相关阅读:
    log4j日志基本配置
    MyBatis基本应用
    Java properties配置文件
    Java DAO模式
    Java方式 MySQL数据库连接
    bug 复制代码没有审查,没有完全就该变量名
    cocos3 深入理解tiledmap
    cocos3 深入理解单例模式
    cocos3 CC_BREAK_IF(m_pGameMap==NULL);
    cocos2d3 宏定义屏幕宽高,这样就不用重复获取了
  • 原文地址:https://www.cnblogs.com/geek-ace/p/7919729.html
Copyright © 2011-2022 走看看