TPS/QPS
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TPS/QPS相关的知识,希望对你有一定的参考价值。
有很多人,自己TPS和QPS的关系都搞不清。如下为基本的查询方式是,与计算公式! 拿走不谢!
MariaDB [(none)]> show global status like ‘questions‘;
+---------------+----------+
| Variable_name | Value |
+---------------+----------+
| Questions | 70991770 |
+---------------+----------+
1 row in set (0.00 sec)
MariaDB [(none)]> show global status like ‘uptime‘;
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| Uptime | 485352 |
+---------------+--------+
1 row in set (0.00 sec)
Questions/ Uptime
QPS:146
MariaDB [(none)]> show global status like ‘com_commit‘;
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| Com_commit | 8960761 |
+---------------+---------+
1 row in set (0.00 sec)
MariaDB [(none)]> show global status like ‘com_rollback‘;
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Com_rollback | 117 |
+---------------+-------+
1 row in set (0.00 sec)
MariaDB [(none)]> show global status like ‘uptime‘;
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| Uptime | 485432 |
+---------------+--------+
1 row in set (0.00 sec)
Com_commit + Com_rollback / Uptime
TPS:18
以上是关于TPS/QPS的主要内容,如果未能解决你的问题,请参考以下文章