Significance and Calculation Method of Mysql database QPS and TPS

Source: Internet
Author: User

Significance and Calculation Method of Mysql database QPS and TPS

The terms QPS and TPS are often mentioned in the monitoring of database performance. Next we will briefly share the meanings and calculation methods of QPS and TPS in the MySQL database.

1 TPS: the transaction volume per second. You can obtain the TPS value requested by the client application in the following way:

Questions = show global status like 'questions ';
Uptime = show global status like 'uptime ';
QPS = Questions/Uptime

2 QPS: queries per second. The QPS here refers to the total number of queries executed by the MySQL Server per second. The calculation method is as follows:

Com_commit = show global status like 'com _ commit ';
Com_rollback = show global status like 'com _ rollback ';
Uptime = show global status like 'uptime ';
TPS = (Com_commit + Com_rollback)/Uptime

IOPS: (Input/Output Operations Per Second), that is, the number of read/write (I/O) Operations Per Second. It is mostly used for databases and other occasions to measure the performance of random access.

The storage IOPS performance is different from the host I/O. IOPS refers to the number of accesses allowed by the host per second. Only one IO of the host can be completed after multiple accesses to the storage. For example, when a host writes a minimum data block, it must go through three steps, namely, sending write requests, writing data, and receiving write confirmation.

IOPS testing benchmark tools include Iometer, IoZone, and FIO, which can be used to test disk IOPS in different situations. For an application system, you must first determine the load characteristics of the data, then select appropriate IOPS indicators for measurement and comparative analysis, and then select the appropriate storage medium and software system.

Related Article

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.