标签: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
原文地址:http://blog.51cto.com/hexudong/2104011