Statistics of QPS values in the last N seconds (including select, insert, etc. per second) mysql> select variable_name,sum(per_sec) as qps from (select straight_join lower(gs0.variable_name) as variable_name, (gs1.variable_value - gs0.variable_value)/5 as per_sec from ( select variable_name ,variable_value from information_schema.global_status where variable_name in ('com_select','com_update','com_insert','com_replace','com_delete') union all select '',sleep(5) from dual ) as gs0 join information_schema.global_status gs1 using (variable_name)) t group by variable_name with rollup; +---------------+---------+ Statistics on qps value, number of slow queries, etc. since db was started mysql> \s The above super simple qps statistics method (recommended) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Sample code for implementing music player with native JS
>>: Detailed explanation of the construction and use of docker private warehouse
Copy code The code is as follows: <meta name=&...
The centos8 distribution is released through the ...
Preface: MySQL is a relational database managemen...
principle The principle of anti-shake is: you can...
Table of contents 1. MySQL master-slave replicati...
Simple function: Click the plug-in icon in the up...
This article mainly introduces how some content i...
Previously, we knew several attributes of backgro...
1. Optimize Nginx concurrency [root@proxy ~]# ab ...
Over the past few years, there has been a trend i...
Download the official website First go to the off...
Table of contents definition Constructor bodies a...
This article is intended to be a starting point f...
Table of contents 1. The default focus is on the ...
You may already know that the length 1 of int(1) ...