设为首页 加入收藏

TOP

MySQL单台物理机上单实例多库与多实例单库性能测试(一)
2016-12-12 08:15:08 】 浏览:915
Tags:MySQL 单台 物理 机上 实例 单库 性能 测试

因游戏业务需求,经常需要创建新的数据库,有时候在已经启着数据库实例的机器上纠结,是在原来的实例中直接加个库呢,还是在另起一个实例,哪个性能更好呢?所以就有了本次的测试。


物理机6台,配置如下


CPU:Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz


MEM:256G


DISK:SSD


2台MySQL机器,分别部署单实例多库环境和多实例单库环境,8个数据库,8个实例,每个数据库数据大概6G左右,机器的大内存是为了以后上线用的,测试为了节省创建数据的时间,所以没有采用大内存,只需要数据大于内存即可。


4台压力源,每台上压测时起2个进程进行测试。


10.11.0.159 单实例多库 buffer_pool_size16G 1instance 8db


10.11.0.160 多实例单库 buffer_pool_size2G 8instance 1db


10.11.0.159 单实例多库上测试命令:


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest1 --oltp-table-size=200000--mysql-user=thunder --mysql-password=thunder --mysql-host=10.11.0.159--mysql-port=3306 --oltp-tables-count=100 --num-threads=32 --max-requests=200000--report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest2 --oltp-table-size=200000--mysql-user=thunder --mysql-password=thunder --mysql-host=10.11.0.159--mysql-port=3306 --oltp-tables-count=100 --num-threads=32 --max-requests=200000--report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest3 --oltp-table-size=200000--mysql-user=thunder --mysql-password=thunder --mysql-host=10.11.0.159--mysql-port=3306 --oltp-tables-count=100 --num-threads=32--max-requests=200000 --report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest4 --oltp-table-size=200000--mysql-user=thunder --mysql-password=thunder --mysql-host=10.11.0.159 --mysql-port=3306--oltp-tables-count=100 --num-threads=32 --max-requests=200000--report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest5 --oltp-table-size=200000--mysql-user=thunder --mysql-password=thunder --mysql-host=10.11.0.159--mysql-port=3306 --oltp-tables-count=100 --num-threads=32--max-requests=200000 --report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest6 --oltp-table-size=200000 --mysql-user=thunder--mysql-password=thunder --mysql-host=10.11.0.159 --mysql-port=3306--oltp-tables-count=100 --num-threads=32 --max-requests=200000--report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --mysql-db=sbtest7 --oltp-table-size=200000--mysql-user=thunder --mysql-password=thunder --mysql-host=10.11.0.159--mysql-port=3306 --oltp-tables-count=100 --num-threads=32--max-requests=200000 --report-interval=2 run


./sysbench --test=./tests/db/oltp.lua --mysql-table-engine=innodb--mysql-db=sbtest8 --oltp-table-size=200000 --mysql-user=thunder--mysql-password=thunder --mysql-host=10.11.0.159 --mysql-port=3306--oltp-tables-count=100 --num-threads=32 --max-requests=200000--report-interval=2 run


10.11.0.160 多实例单库上测试命令


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --oltp-table-size=200000 --mysql-user=thunder--mysql-password=thunder --mysql-host=10.11.0.160 --mysql-port=3301--oltp-tables-count=100 --num-threads=32 --max-requests=200000--report-interval=2 run


./sysbench --test=./tests/db/oltp.lua--mysql-table-engine=innodb --oltp-table-size=200000 --mysql-user=thunder--mysql-password=thunder --mysq

首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇RMAN还原归档时报RMAN-20242错误.. 下一篇Oracle exists子查询出现rownum引..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目