vNS12 MySQL Performance
vNS12 MySQL Performance
vNS12(192.168.195.91): 2vCPU + 2GBMem
MySQL1(192.168.185.73): 2vCPU + 1GBMem
MySQL2(192.168.185.75): 2vCPU + 1GBMem
LinuxClient(192.168.195.71): 2vCPU + 1GBMem
MySQL2(192.168.185.75:3306) Performance:
[root@lsgxeva ~]# sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --db-driver=mysql --mysql-host=192.168.185.75 --mysql-port=3306 --mysql-user=sbtest --mysql-password=sbtest --mysql-db=sbtest --oltp-test-mode=complex --oltp-tables-count=10 --oltp-table-size=100000 --threads=10 --time=120 --report-interval=10 run
sysbench 1.0.9 (using system LuaJIT 2.0.4) Running the test with following options:
Number of threads: 10
Report intermediate results every 10 second(s)
Initializing random number generator from current time Initializing worker threads... Threads started! [ 10s ] thds: 10 tps: 236.25 qps: 4741.53 (r/w/o: 3320.12/874.12/547.29) lat (ms,95%): 71.83 err/s: 0.00 reconn/s: 0.00
[ 20s ] thds: 10 tps: 195.21 qps: 3897.73 (r/w/o: 2728.99/715.12/453.62) lat (ms,95%): 92.42 err/s: 0.00 reconn/s: 0.00
[ 30s ] thds: 10 tps: 189.69 qps: 3801.34 (r/w/o: 2659.99/701.27/440.08) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 40s ] thds: 10 tps: 213.60 qps: 4270.33 (r/w/o: 2990.82/782.61/496.90) lat (ms,95%): 92.42 err/s: 0.00 reconn/s: 0.00
[ 50s ] thds: 10 tps: 189.61 qps: 3787.75 (r/w/o: 2651.10/699.63/437.02) lat (ms,95%): 121.08 err/s: 0.00 reconn/s: 0.00
[ 60s ] thds: 10 tps: 195.50 qps: 3914.50 (r/w/o: 2739.60/719.60/455.30) lat (ms,95%): 104.84 err/s: 0.00 reconn/s: 0.00
[ 70s ] thds: 10 tps: 193.10 qps: 3859.52 (r/w/o: 2702.65/709.89/446.99) lat (ms,95%): 116.80 err/s: 0.00 reconn/s: 0.00
[ 80s ] thds: 10 tps: 206.49 qps: 4127.70 (r/w/o: 2888.63/756.58/482.49) lat (ms,95%): 94.10 err/s: 0.00 reconn/s: 0.00
[ 90s ] thds: 10 tps: 192.61 qps: 3858.12 (r/w/o: 2700.69/711.62/445.81) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 100s ] thds: 10 tps: 197.40 qps: 3948.56 (r/w/o: 2763.54/729.51/455.51) lat (ms,95%): 112.67 err/s: 0.00 reconn/s: 0.00
[ 110s ] thds: 10 tps: 198.00 qps: 3961.06 (r/w/o: 2772.27/726.89/461.90) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 120s ] thds: 10 tps: 184.77 qps: 3689.19 (r/w/o: 2583.07/673.59/432.53) lat (ms,95%): 144.97 err/s: 0.00 reconn/s: 0.00
SQL statistics:
queries performed:
read: 335062
write: 88031
other: 55567
total: 478660
transactions: 23933 (199.38 per sec.)
queries: 478660 (3987.54 per sec.)
ignored errors: 0 (0.00 per sec.)
reconnects: 0 (0.00 per sec.) General statistics:
total time: 120.0375s
total number of events: 23933 Latency (ms):
min: 11.35
avg: 50.14
max: 812.61
95th percentile: 108.68
sum: 1200039.92 Threads fairness:
events (avg/stddev): 2393.3000/56.73
execution time (avg/stddev): 120.0040/0.01
lb_vsrv_mysql_single(192.168.195.104:3306) Performance:
--> MySQL2(192.168.185.75:3306)
[root@lsgxeva ~]# sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --db-driver=mysql --mysql-host=192.168.195.104 --mysql-port=3306 --mysql-user=sbtest --mysql-password=sbtest --mysql-db=sbtest --oltp-test-mode=complex --oltp-tables-count=10 --oltp-table-size=100000 --threads=10 --time=120 --report-interval=10 run
sysbench 1.0.9 (using system LuaJIT 2.0.4) Running the test with following options:
Number of threads: 10
Report intermediate results every 10 second(s)
Initializing random number generator from current time Initializing worker threads... Threads started! [ 10s ] thds: 10 tps: 208.75 qps: 4183.88 (r/w/o: 2929.96/760.03/493.89) lat (ms,95%): 90.78 err/s: 0.00 reconn/s: 0.00
[ 20s ] thds: 10 tps: 179.61 qps: 3594.66 (r/w/o: 2517.01/659.33/418.32) lat (ms,95%): 121.08 err/s: 0.00 reconn/s: 0.00
[ 30s ] thds: 10 tps: 158.00 qps: 3161.02 (r/w/o: 2212.91/579.50/368.60) lat (ms,95%): 153.02 err/s: 0.00 reconn/s: 0.00
[ 40s ] thds: 10 tps: 166.00 qps: 3310.43 (r/w/o: 2314.85/601.49/394.09) lat (ms,95%): 150.29 err/s: 0.00 reconn/s: 0.00
[ 50s ] thds: 10 tps: 157.76 qps: 3165.90 (r/w/o: 2217.01/580.17/368.72) lat (ms,95%): 150.29 err/s: 0.00 reconn/s: 0.00
[ 60s ] thds: 10 tps: 178.44 qps: 3568.67 (r/w/o: 2498.44/655.54/414.69) lat (ms,95%): 134.90 err/s: 0.00 reconn/s: 0.00
[ 70s ] thds: 10 tps: 180.69 qps: 3605.49 (r/w/o: 2523.45/662.76/419.28) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 80s ] thds: 10 tps: 181.51 qps: 3644.28 (r/w/o: 2551.09/668.45/424.73) lat (ms,95%): 121.08 err/s: 0.00 reconn/s: 0.00
[ 90s ] thds: 10 tps: 191.48 qps: 3820.55 (r/w/o: 2675.66/701.54/443.36) lat (ms,95%): 94.10 err/s: 0.00 reconn/s: 0.00
[ 100s ] thds: 10 tps: 180.70 qps: 3617.37 (r/w/o: 2531.75/662.61/423.01) lat (ms,95%): 123.28 err/s: 0.00 reconn/s: 0.00
[ 110s ] thds: 10 tps: 190.42 qps: 3804.70 (r/w/o: 2663.41/697.25/444.04) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 120s ] thds: 10 tps: 198.60 qps: 3971.28 (r/w/o: 2778.99/732.90/459.40) lat (ms,95%): 102.97 err/s: 0.00 reconn/s: 0.00
SQL statistics:
queries performed:
read: 304220
write: 79642
other: 50738
total: 434600
transactions: 21730 (181.01 per sec.)
queries: 434600 (3620.29 per sec.)
ignored errors: 0 (0.00 per sec.)
reconnects: 0 (0.00 per sec.) General statistics:
total time: 120.0444s
total number of events: 21730 Latency (ms):
min: 16.45
avg: 55.23
max: 939.91
95th percentile: 121.08
sum: 1200142.16 Threads fairness:
events (avg/stddev): 2173.0000/16.17
execution time (avg/stddev): 120.0142/0.02
lb_vsrv_mysql_write(192.168.195.105:3306) Performance:
--> MySQL1(192.168.185.73:3306)
--> MySQL2(192.168.185.75:3306)
[root@lsgxeva ~]# sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --db-driver=mysql --mysql-host=192.168.195.105 --mysql-port=3306 --mysql-user=sbtest --mysql-password=sbtest --mysql-db=sbtest --oltp-test-mode=complex --oltp-tables-count=10 --oltp-table-size=100000 --threads=10 --time=120 --report-interval=10 run
sysbench 1.0.9 (using system LuaJIT 2.0.4) Running the test with following options:
Number of threads: 10
Report intermediate results every 10 second(s)
Initializing random number generator from current time Initializing worker threads... Threads started! [ 10s ] thds: 10 tps: 254.64 qps: 5111.88 (r/w/o: 3579.02/921.80/611.07) lat (ms,95%): 82.96 err/s: 0.00 reconn/s: 0.00
[ 20s ] thds: 10 tps: 221.20 qps: 4420.38 (r/w/o: 3094.79/797.00/528.60) lat (ms,95%): 123.28 err/s: 0.00 reconn/s: 0.00
[ 30s ] thds: 10 tps: 187.19 qps: 3734.54 (r/w/o: 2613.49/678.47/442.58) lat (ms,95%): 139.85 err/s: 0.00 reconn/s: 0.00
[ 40s ] thds: 10 tps: 121.40 qps: 2431.02 (r/w/o: 1701.74/440.39/288.89) lat (ms,95%): 257.95 err/s: 0.00 reconn/s: 0.00
[ 50s ] thds: 10 tps: 208.20 qps: 4163.85 (r/w/o: 2915.77/749.69/498.39) lat (ms,95%): 127.81 err/s: 0.00 reconn/s: 0.00
[ 60s ] thds: 10 tps: 216.92 qps: 4347.94 (r/w/o: 3042.91/784.48/520.55) lat (ms,95%): 110.66 err/s: 0.00 reconn/s: 0.00
[ 70s ] thds: 10 tps: 222.41 qps: 4448.05 (r/w/o: 3113.61/809.63/524.82) lat (ms,95%): 99.33 err/s: 0.00 reconn/s: 0.00
[ 80s ] thds: 10 tps: 229.38 qps: 4577.85 (r/w/o: 3204.46/831.34/542.06) lat (ms,95%): 104.84 err/s: 0.00 reconn/s: 0.00
[ 90s ] thds: 10 tps: 200.98 qps: 4021.04 (r/w/o: 2815.18/729.02/476.85) lat (ms,95%): 132.49 err/s: 0.00 reconn/s: 0.00
[ 100s ] thds: 10 tps: 214.83 qps: 4296.27 (r/w/o: 3006.10/781.00/509.17) lat (ms,95%): 123.28 err/s: 0.00 reconn/s: 0.00
[ 110s ] thds: 10 tps: 212.91 qps: 4263.62 (r/w/o: 2987.08/775.52/501.01) lat (ms,95%): 114.72 err/s: 0.00 reconn/s: 0.00
[ 120s ] thds: 10 tps: 206.59 qps: 4126.78 (r/w/o: 2887.44/750.96/488.37) lat (ms,95%): 97.55 err/s: 0.00 reconn/s: 0.00
SQL statistics:
queries performed:
read: 349678
write: 90526
other: 59336
total: 499540
transactions: 24977 (208.05 per sec.)
queries: 499540 (4160.97 per sec.)
ignored errors: 0 (0.00 per sec.)
reconnects: 0 (0.00 per sec.) General statistics:
total time: 120.0524s
total number of events: 24977 Latency (ms):
min: 12.48
avg: 48.05
max: 1509.04
95th percentile: 118.92
sum: 1200217.54 Threads fairness:
events (avg/stddev): 2497.7000/10.93
execution time (avg/stddev): 120.0218/0.01
vNS12 MySQL Performance的更多相关文章
- mysql优化---优化工具MySQL performance tuning primer script
MySQL performance tuning primer script一个简单好用的mysql优化工具,其实一个shell脚本 下载: $ wget http://www.day32.com/M ...
- 学习笔记:Analyze MySQL Performance及慢日志的开启
Table of Contents Analyze MySQL PerformanceTuningSlow queries and Slowlog Brought to you by Rick Jam ...
- MySQL Performance Tuning: Tips, Scripts and Tools
With MySQL, common configuration mistakes can cause serious performance problems. In fact, if you mi ...
- mysql performance storage engine
mysql performance storage engine 概要 mysql的运行时状态记录的存储引擎,实现了PSI(Performance Storage Interface) 通过WITH_ ...
- MYSQL performance
https://www.mysql.com/why-mysql/performance/ https://www.slideshare.net/oysteing/how-to-analyze-and- ...
- MySQL Performance Schema详解
MySQL的performance schema 用于监控MySQL server在一个较低级别的运行过程中的资源消耗.资源等待等情况. 1 performance schema特点 提供了一种在数据 ...
- Zabbix监控mysql performance
介绍 zabbix监控mysql性能,使用zabbix自带的mysql监控模板,可以监控以下内容OPS(增删改查).mysql慢查询数量.mysql请求\响应流量带宽 配置 新建mysql监控用户 G ...
- MySQL Performance tuning
1.表级锁状态 mysql> show status like 'table%'; +----------------------------+-----------+ | Variable_n ...
- mysql performance schema的即时诊断工具-邱伟胜
https://github.com/noodba http://www.noodba.com
随机推荐
- 理解MVC 框架
前言:很多前端开发者面临着这样的问题,在项目开发中承担的工作越来越多,后端要做的越来越少,需要的技术棧越来越多,经常有人问你个技术是你完全不会的,对自己的职业生涯越来越怀疑.从前认为HTML+CSS+ ...
- 【转】Web实时通信之Socket.IO ,真正的兼容ie
前面两篇文章使用了Ajax long polling和WebSocket两种常用的Web实时通信方式构建了简单的聊天程序. 但是,由于浏览器的兼容问题,不是所有的环境都可以使用WebSocket这种比 ...
- 实现带复选框的TreeView控件
实现效果: 知识运用: TreeView控件的CheckView属性 //是否在树形视图控件中显示复选框 public bool CheckBoxs{ get;ser } 实现代码: TreeView ...
- Python 之私有属性
概要 在基类的定义中,如果有些属性或者方法,我们希望隐藏它,从而不被子类继承,或者使其不被实例直接访问到,这时候可以用到私有属性的命名方法.尽管类的所有属性和方法在某种意义上说都是"暴露的& ...
- 操作表单 -------JavaScrip
本文摘要:http://www.liaoxuefeng.com/ HTML表单的输入控件主要有以下几种: 文本框,对应的<input type="text">,用于输入 ...
- C语言正整数除法向上取整
在网上发现一个简单的向上取整方法: 这里我们用<>表示向上取整,[]表示向下取整,那么怎么来表示这个值呢? 我们可以证明: <N/M>=[(N-1)/M]+1 (0< ...
- Oracle 数字处理函数
数字处理函数 ① mod(number1,number2) 取余数的函数,比如mod(10,3) = 10/3 = 1. ② round(number,num_ditigs) .trunk(numbe ...
- C++ 学习笔记 (八)重载 重写 重定义以及名字覆盖
学习C++必定会遇到重载.重写.重定义.概念的东西多也是学习C++蛋疼之处,但是还是得弄懂,学懂了也就不觉得多了. 概念,特点: 重载: 直白点说就是函数名字相同,传参的个数,类型不一样.判断标准在于 ...
- Spring - 什么是IOC?
- Centos7在运行yum命令时出现报错及排查处理过程
1.1 现象描述 Centos系统在正常重启后,运行yum命令安装软件工具的时候出现以下报错: cannot open Packages index using db5 - Structure ne ...