MARIADB10 and MySQL5.6 Community Edition stress test

Source: Internet
Author: User
Tags dell r610

Fill in the work, MARIADB10 and MySQL5.6 Community Edition stress tests, see:


Sysbench (10.8.8.43)

MySQL5.6 and MariaDB10.0.11 (10.8.8.100)


Pressure test parameters:

Sysbench--test=oltp--mysql-table-engine=innodb--oltp-table-size=10000000--max-requests=0--max-time=900-- num-threads=512--mysql-host=10.8.8.100--mysql-port=3308--mysql-user=admin--mysql-password=123456--mysql-db= Test run

10 million records, no limit requests, 15 minutes of pressure measurement, the number of concurrent connections 512.


MY.CNF Parameters:

Sync_binlog = 0innodb_flush_log_at_trx_commit = 0innodb_flush_method = O_directinnodb_flush_neighbors = 1innodb_buffer _pool_size = 20ginnodb_io_capacity = 500innodb_log_file_size = 512minnodb_log_files_in_group = 3innodb_log_buffer_size = 16mtx_isolation = Read-committedthread_handling = Pool-of-threads (MARIADB's thread pool)


Machine configuration:

Relatively poor, DELL r610,2 4-Core CPU,RAID1 7200-turn SAS hard drive.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/2D/56/wKioL1OWt0iiaG_KAADumUmrgOc447.jpg "title=" Tps.jpg "alt=" Wkiol1owt0iiag_kaadumumrgoc447.jpg "/>

It is apparent that the performance of MySQL5.6.19 is reduced by 50% at high concurrency.


Here are the top and stress tests:

MySQL5.6.19

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/2D/55/wKiom1OWummyorYFAARpiAO0Rtc779.jpg "title=" Mysql5.6_cpu.jpg "alt=" Wkiom1owummyoryfaarpiao0rtc779.jpg "/>

The load average reaches 195 and is already overloaded.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/2D/55/wKiom1OWuqeSwyh8AAKEt6EMwdI348.jpg "title=" Mysql5.6_tps.jpg "alt=" Wkiom1owuqeswyh8aaket6emwdi348.jpg "/>

TPS is 1002.42 per second.


MariaDB10.0.11

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/2D/55/wKiom1OWuyagWg_CAARKWhej2Nk005.jpg "title=" Mariadb10_cpu.jpg "alt=" Wkiom1owuyagwg_caarkwhej2nk005.jpg "/>

Load average is 11.59


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/2D/56/wKioL1OWvUSw1C9uAAMcKJxgmio262.jpg "title=" Mariadb10_tps.jpg "alt=" Wkiol1owvusw1c9uaamckjxgmio262.jpg "/>

TPS is 2044.8 per second.


Add: Now adjust the number of concurrent connections to 900, then press again to see TPS:

MySQL5.6.19

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/2D/6D/wKioL1OW3j2RAC6fAAJ7_mCu-uw744.jpg "title=" Mysql_ 900.jpg "alt=" Wkiol1ow3j2rac6faaj7_mcu-uw744.jpg "/>


MariaDB10.0.11

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/2D/6D/wKioL1OW3enzqGMnAALBbfVpKRE421.jpg "title=" Mariadb_900.jpg "alt=" Wkiol1ow3enzqgmnaalbbfvpkre421.jpg "/>


As you can see, MySQL5.6 performance continues to degrade as the number of concurrent connections increases, while MariaDB10 performance remains stable.


Conclusion:

Roughly and the official test almost, because there is no MySQL5.6 Enterprise Edition, so can not say MariaDB10 is strong, but in high concurrency environment, MySQL5.6.19 Community Edition is not recommended for use in production environment.



This article is from the "Spring Yang Technical column" blog, please be sure to keep this source http://hcymysql.blog.51cto.com/5223301/1424625

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.